<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>GChartWrapper.GChart'</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="GChartWrapper-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="GChartWrapper-module.html">Package&nbsp;GChartWrapper</a> ::
        Module&nbsp;GChart'
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="GChartWrapper.GChart%27-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="GChartWrapper.GChart%27-module.html">Module GChartWrapper.GChart'</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: utf-8 -*-</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">################################################################################</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  GChartWrapper - v0.8</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  Copyright (C) 2009  Justin Quick &lt;justquick@gmail.com&gt;</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  This program is free software; you can redistribute it and/or modify</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  it under the terms of the GNU General Public License version 3 as published</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  by the Free Software Foundation.</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  Thanks to anyone who does anything for this project.</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  If you have even the smallest revision, please email me at above address.</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">################################################################################</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-docstring">"""</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">GChartWrapper - Google Chart API Wrapper</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">The wrapper can render the URL of the Google chart based on your parameters.</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">With the chart you can render an HTML img tag to insert into webpages on the fly,</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">show it directly in a webbrowser, or save the chart PNG to disk. New versions</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-docstring">can generate PIL PngImage instances.</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-docstring">Example</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G = GChart('lc',['simpleisbetterthancomplexcomplexisbetterthancomplicated'])</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.title('The Zen of Python','00cc00',36)</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.color('00cc00')</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; str(G)</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-docstring">    'http://chart.apis.google.com/chart?</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-docstring">        chd=e:simpleisbetterthancomplexcomplexisbetterthancomplicated</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-docstring">        &amp;chs=300x150</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-docstring">        &amp;cht=lc</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-docstring">        &amp;chtt=The+Zen+of+Python'    </tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.image() # PIL instance</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-docstring">    &lt;PngImagePlugin.PngImageFile instance at ...&gt;</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; 1#G.show() # Webbrowser open</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-docstring">    True</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.save('tmp.png') # Save to disk</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line"><tt class="py-docstring">    'tmp.png'</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line"><tt class="py-docstring">See tests.py for unit test and other examples</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package GChartWrapper=GChartWrapper-module.html"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-0', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module GChartWrapper.constants=GChartWrapper.constants-module.html"><a title="GChartWrapper.constants" class="py-name" href="#" onclick="return doclink('link-1', 'constants', 'link-1');">constants</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name"><a title="GChartWrapper" class="py-name" href="#" onclick="return doclink('link-2', 'GChartWrapper', 'link-0');">GChartWrapper</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Method GChartWrapper.GChart.encoding()=GChartWrapper.GChart-class.html#encoding,Module GChartWrapper.encoding=GChartWrapper.encoding-module.html"><a title="GChartWrapper.GChart.encoding
GChartWrapper.encoding" class="py-name" href="#" onclick="return doclink('link-3', 'encoding', 'link-3');">encoding</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Class GChartWrapper.encoding.Encoder=GChartWrapper.encoding.Encoder-class.html"><a title="GChartWrapper.encoding.Encoder" class="py-name" href="#" onclick="return doclink('link-4', 'Encoder', 'link-4');">Encoder</a></tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">copy</tt> <tt class="py-keyword">import</tt> <tt class="py-name">copy</tt> </tt>
<a name="lookup_color"></a><div id="lookup_color-def"><a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt> <a class="py-toggle" href="#" id="lookup_color-toggle" onclick="return toggle('lookup_color');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'-module.html#lookup_color">lookup_color</a><tt class="py-op">(</tt><tt class="py-param">color</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="lookup_color-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="lookup_color-expanded"><a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt class="py-docstring">    Returns the hex color for any valid css color name</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; lookup_color('aliceblue')</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt class="py-docstring">    'F0F8FF'</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-5" class="py-name" targets="Method GChartWrapper.GChart.color()=GChartWrapper.GChart-class.html#color"><a title="GChartWrapper.GChart.color" class="py-name" href="#" onclick="return doclink('link-5', 'color', 'link-5');">color</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">    <tt id="link-6" class="py-name"><a title="GChartWrapper.GChart.color" class="py-name" href="#" onclick="return doclink('link-6', 'color', 'link-5');">color</a></tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name"><a title="GChartWrapper.GChart.color" class="py-name" href="#" onclick="return doclink('link-7', 'color', 'link-5');">color</a></tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-8" class="py-name"><a title="GChartWrapper.GChart.color" class="py-name" href="#" onclick="return doclink('link-8', 'color', 'link-5');">color</a></tt> <tt class="py-keyword">in</tt> <tt id="link-9" class="py-name" targets="Variable GChartWrapper.GChart'.COLOR_MAP=GChartWrapper.GChart%27-module.html#COLOR_MAP,Variable GChartWrapper.constants.COLOR_MAP=GChartWrapper.constants-module.html#COLOR_MAP"><a title="GChartWrapper.GChart'.COLOR_MAP
GChartWrapper.constants.COLOR_MAP" class="py-name" href="#" onclick="return doclink('link-9', 'COLOR_MAP', 'link-9');">COLOR_MAP</a></tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-10" class="py-name"><a title="GChartWrapper.GChart'.COLOR_MAP
GChartWrapper.constants.COLOR_MAP" class="py-name" href="#" onclick="return doclink('link-10', 'COLOR_MAP', 'link-9');">COLOR_MAP</a></tt><tt class="py-op">[</tt><tt id="link-11" class="py-name"><a title="GChartWrapper.GChart.color" class="py-name" href="#" onclick="return doclink('link-11', 'color', 'link-5');">color</a></tt><tt class="py-op">]</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-12" class="py-name"><a title="GChartWrapper.GChart.color" class="py-name" href="#" onclick="return doclink('link-12', 'color', 'link-5');">color</a></tt> </tt>
</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"> </tt>
<a name="color_args"></a><div id="color_args-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="color_args-toggle" onclick="return toggle('color_args');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'-module.html#color_args">color_args</a><tt class="py-op">(</tt><tt class="py-param">args</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">indexes</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="color_args-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="color_args-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line"><tt class="py-docstring">    Color a list of arguments on particular indexes</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; c = color_args([None,'blue'], 1)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; c.next()</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line"><tt class="py-docstring">    None</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; c.next()</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"><tt class="py-docstring">    '0000FF'</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt class="py-name">i</tt><tt class="py-op">,</tt><tt class="py-name">arg</tt> <tt class="py-keyword">in</tt> <tt class="py-name">enumerate</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">indexes</tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">            <tt class="py-keyword">yield</tt> <tt id="link-13" class="py-name" targets="Function GChartWrapper.GChart'.lookup_color()=GChartWrapper.GChart%27-module.html#lookup_color"><a title="GChartWrapper.GChart'.lookup_color" class="py-name" href="#" onclick="return doclink('link-13', 'lookup_color', 'link-13');">lookup_color</a></tt><tt class="py-op">(</tt><tt class="py-name">arg</tt><tt class="py-op">)</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">            <tt class="py-keyword">yield</tt> <tt class="py-name">arg</tt> </tt>
</div><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"> </tt>
<a name="Axes"></a><div id="Axes-def"><a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line"> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt> <a class="py-toggle" href="#" id="Axes-toggle" onclick="return toggle('Axes');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html">Axes</a><tt class="py-op">(</tt><tt class="py-base-class">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Axes-expanded"><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"><tt class="py-docstring">    Axes attribute dictionary storage</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"><tt class="py-docstring">    Use this class via GChart(...).axes</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"><tt class="py-docstring">    Methods are taken one at a time, like so:</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G = GChart()</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.axes.type('xy')</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"><tt class="py-docstring">    {}</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.axes.label(1,'Label1') # X Axis</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-docstring">    {}</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-docstring">    &gt;&gt;&gt; G.axes.label(2,'Label2') # Y Axis</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"><tt class="py-docstring">    {}</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="Axes.__init__"></a><div id="Axes.__init__-def"><a name="L90"></a><tt class="py-lineno"> 90</tt> <a class="py-toggle" href="#" id="Axes.__init__-toggle" onclick="return toggle('Axes.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.__init__-expanded"><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> <tt class="py-op">=</tt> <tt class="py-name">parent</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'ticks'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'labels'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'positions'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt class="py-string">'ranges'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'styles'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">}</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-name">dict</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method GChartWrapper.Bubble.__init__()=GChartWrapper.Bubble-class.html#__init__,Method GChartWrapper.GChart.__init__()=GChartWrapper.GChart-class.html#__init__,Method GChartWrapper.GChart'.Axes.__init__()=GChartWrapper.GChart%27.Axes-class.html#__init__,Method GChartWrapper.GChart'._AbstractGChart.__init__()=GChartWrapper.GChart%27._AbstractGChart-class.html#__init__,Method GChartWrapper.Note.__init__()=GChartWrapper.Note-class.html#__init__,Method GChartWrapper.Pin.__init__()=GChartWrapper.Pin-class.html#__init__,Method GChartWrapper.QRCode.__init__()=GChartWrapper.QRCode-class.html#__init__,Method GChartWrapper.Text.__init__()=GChartWrapper.Text-class.html#__init__,Method GChartWrapper.charts.templatetags.charts.ChartNode.__init__()=GChartWrapper.charts.templatetags.charts.ChartNode-class.html#__init__,Method GChartWrapper.charts.templatetags.charts.GenericNode.__init__()=GChartWrapper.charts.templatetags.charts.GenericNode-class.html#__init__,Method GChartWrapper.encoding.Encoder.__init__()=GChartWrapper.encoding.Encoder-class.html#__init__,Method GChartWrapper.tests.TestChartTypes.__init__()=GChartWrapper.tests.TestChartTypes-class.html#__init__"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-14', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"> </tt>
<a name="Axes.tick"></a><div id="Axes.tick-def"><a name="L96"></a><tt class="py-lineno"> 96</tt> <a class="py-toggle" href="#" id="Axes.tick-toggle" onclick="return toggle('Axes.tick');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#tick">tick</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">index</tt><tt class="py-op">,</tt> <tt class="py-param">length</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.tick-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.tick-expanded"><a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring">        Add tick marks in order of axes by width</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chxtc     &lt;axis index&gt;,&lt;length of tick mark&gt;</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">length</tt><tt class="py-op">)</tt> <tt class="py-op">&lt;=</tt> <tt class="py-number">25</tt><tt class="py-op">,</tt> <tt class="py-string">'Width cannot be more than 25'</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'ticks'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">'%s,%d'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">index</tt><tt class="py-op">,</tt><tt class="py-name">length</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> </tt>
</div><a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">     </tt>
<a name="Axes.type"></a><div id="Axes.type-def"><a name="L105"></a><tt class="py-lineno">105</tt> <a class="py-toggle" href="#" id="Axes.type-toggle" onclick="return toggle('Axes.type');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#type">type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">atype</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.type-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.type-expanded"><a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt class="py-docstring">        Define the type of axes you wish to use</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt class="py-docstring">        atype must be one of x,t,y,r</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chxt</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">char</tt> <tt class="py-keyword">in</tt> <tt class="py-name">atype</tt><tt class="py-op">:</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">char</tt> <tt class="py-keyword">in</tt> <tt class="py-string">'xtyr'</tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid axes type: %s'</tt><tt class="py-op">%</tt><tt class="py-name">char</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-string">','</tt> <tt class="py-keyword">in</tt> <tt class="py-name">atype</tt><tt class="py-op">:</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">            <tt class="py-name">atype</tt> <tt class="py-op">=</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">atype</tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chxt'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">atype</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> </tt>
</div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">    <tt id="link-15" class="py-name" targets="Method GChartWrapper.GChart'.Axes.__call__()=GChartWrapper.GChart%27.Axes-class.html#__call__"><a title="GChartWrapper.GChart'.Axes.__call__" class="py-name" href="#" onclick="return doclink('link-15', '__call__', 'link-15');">__call__</a></tt> <tt class="py-op">=</tt> <tt id="link-16" class="py-name" targets="Method GChartWrapper.GChart.type()=GChartWrapper.GChart-class.html#type"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-16', 'type', 'link-16');">type</a></tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">     </tt>
<a name="Axes.label"></a><div id="Axes.label-def"><a name="L119"></a><tt class="py-lineno">119</tt> <a class="py-toggle" href="#" id="Axes.label-toggle" onclick="return toggle('Axes.label');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#label">label</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">index</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.label-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.label-expanded"><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"><tt class="py-docstring">        Label each axes one at a time</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form &lt;label 1&gt;,...,&lt;label n&gt;</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chxl</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'labels'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-string">'%s:|%s'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">index</tt><tt class="py-op">,</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name" targets="Method GChartWrapper.GChart.map()=GChartWrapper.GChart-class.html#map"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-17', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'None'</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">        <tt class="py-op">)</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> </tt>
</div><a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">         </tt>
<a name="Axes.position"></a><div id="Axes.position-def"><a name="L130"></a><tt class="py-lineno">130</tt> <a class="py-toggle" href="#" id="Axes.position-toggle" onclick="return toggle('Axes.position');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#position">position</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">index</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.position-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.position-expanded"><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">        Set the label position of each axis, one at a time</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form &lt;label position 1&gt;,...,&lt;label position n&gt;</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chxp</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'positions'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">            <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-string">'%s,%s'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">index</tt><tt class="py-op">,</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-18', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'None'</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> </tt>
</div><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">         </tt>
<a name="Axes.range"></a><div id="Axes.range-def"><a name="L141"></a><tt class="py-lineno">141</tt> <a class="py-toggle" href="#" id="Axes.range-toggle" onclick="return toggle('Axes.range');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#range">range</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">index</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.range-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.range-expanded"><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"><tt class="py-docstring">        Set the range of each axis, one at a time</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form &lt;start of range&gt;,&lt;end of range&gt;,&lt;interval&gt;</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chxr</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'ranges'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">'%s,%s'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">index</tt><tt class="py-op">,</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">                                    <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-19" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-19', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt id="link-20" class="py-name" targets="Function GChartWrapper.constants.smart_str()=GChartWrapper.constants-module.html#smart_str"><a title="GChartWrapper.constants.smart_str" class="py-name" href="#" onclick="return doclink('link-20', 'smart_str', 'link-20');">smart_str</a></tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> </tt>
</div><a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">         </tt>
<a name="Axes.style"></a><div id="Axes.style-def"><a name="L151"></a><tt class="py-lineno">151</tt> <a class="py-toggle" href="#" id="Axes.style-toggle" onclick="return toggle('Axes.style');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#style">style</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">index</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.style-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.style-expanded"><a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line"><tt class="py-docstring">        Add style to your axis, one at a time</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form::</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;axis color&gt;,</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;font size&gt;,</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;alignment&gt;,</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;drawing control&gt;,</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;tick mark color&gt;</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chxs</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-21" class="py-name" targets="Function GChartWrapper.GChart'.color_args()=GChartWrapper.GChart%27-module.html#color_args"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-21', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'styles'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">            <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">index</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-22" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-22', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">        <tt class="py-op">)</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> </tt>
</div><a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"> </tt>
<a name="Axes.render"></a><div id="Axes.render-def"><a name="L168"></a><tt class="py-lineno">168</tt> <a class="py-toggle" href="#" id="Axes.render-toggle" onclick="return toggle('Axes.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Axes-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Axes.render-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Axes.render-expanded"><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">        <tt class="py-docstring">"""Render the axes data into the dict data"""</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">opt</tt><tt class="py-op">,</tt><tt class="py-name">values</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">opt</tt> <tt class="py-op">==</tt> <tt class="py-string">'ticks'</tt><tt class="py-op">:</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chxtc'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">values</tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chx%s'</tt><tt class="py-op">%</tt><tt class="py-name">opt</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">values</tt><tt class="py-op">)</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt>     </tt>
</div></div><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">         </tt>
<a name="GChart"></a><div id="GChart-def"><a name="L177"></a><tt class="py-lineno">177</tt> <a class="py-toggle" href="#" id="GChart-toggle" onclick="return toggle('GChart');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html">GChart</a><tt class="py-op">(</tt><tt class="py-base-class">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="GChart-expanded"><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">    <tt class="py-docstring">"""Main chart class</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line"><tt class="py-docstring">    Chart type must be valid for cht parameter</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line"><tt class="py-docstring">    Dataset can be any python iterable and be multi dimensional</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line"><tt class="py-docstring">    Kwargs will be put into chart API params if valid"""</tt> </tt>
<a name="GChart.__init__"></a><div id="GChart.__init__-def"><a name="L183"></a><tt class="py-lineno">183</tt> <a class="py-toggle" href="#" id="GChart.__init__-toggle" onclick="return toggle('GChart.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ctype</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">dataset</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.__init__-expanded"><a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_series</tt> <tt class="py-op">=</tt> <tt class="py-name">kwargs</tt><tt class="py-op">.</tt><tt class="py-name">pop</tt><tt class="py-op">(</tt><tt class="py-string">'series'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lines</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fills</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">markers</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scales</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_geo</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ld</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt><tt class="py-op">,</tt><tt class="py-string">''</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dataset</tt> <tt class="py-op">=</tt> <tt id="link-23" class="py-name" targets="Method GChartWrapper.GChart.dataset()=GChartWrapper.GChart-class.html#dataset"><a title="GChartWrapper.GChart.dataset" class="py-name" href="#" onclick="return doclink('link-23', 'dataset', 'link-23');">dataset</a></tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">        <tt class="py-name">dict</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-24', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">ctype</tt><tt class="py-op">:</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'cht'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Method GChartWrapper.GChart.check_type()=GChartWrapper.GChart-class.html#check_type"><a title="GChartWrapper.GChart.check_type" class="py-name" href="#" onclick="return doclink('link-25', 'check_type', 'link-25');">check_type</a></tt><tt class="py-op">(</tt><tt class="py-name">ctype</tt><tt class="py-op">)</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_encoding</tt> <tt class="py-op">=</tt> <tt class="py-name">kwargs</tt><tt class="py-op">.</tt><tt class="py-name">pop</tt><tt class="py-op">(</tt><tt class="py-string">'encoding'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_scale</tt> <tt class="py-op">=</tt> <tt class="py-name">kwargs</tt><tt class="py-op">.</tt><tt class="py-name">pop</tt><tt class="py-op">(</tt><tt class="py-string">'scale'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_apiurl</tt> <tt class="py-op">=</tt> <tt class="py-name">kwargs</tt><tt class="py-op">.</tt><tt class="py-name">pop</tt><tt class="py-op">(</tt><tt class="py-string">'apiurl'</tt><tt class="py-op">,</tt> <tt id="link-26" class="py-name" targets="Variable GChartWrapper.GChart'.APIURL=GChartWrapper.GChart%27-module.html#APIURL,Variable GChartWrapper.constants.APIURL=GChartWrapper.constants-module.html#APIURL"><a title="GChartWrapper.GChart'.APIURL
GChartWrapper.constants.APIURL" class="py-name" href="#" onclick="return doclink('link-26', 'APIURL', 'link-26');">APIURL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">k</tt> <tt class="py-keyword">in</tt> <tt class="py-name">kwargs</tt><tt class="py-op">:</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">k</tt> <tt class="py-keyword">in</tt> <tt id="link-27" class="py-name" targets="Variable GChartWrapper.GChart'.APIPARAMS=GChartWrapper.GChart%27-module.html#APIPARAMS,Variable GChartWrapper.constants.APIPARAMS=GChartWrapper.constants-module.html#APIPARAMS"><a title="GChartWrapper.GChart'.APIPARAMS
GChartWrapper.constants.APIPARAMS" class="py-name" href="#" onclick="return doclink('link-27', 'APIPARAMS', 'link-27');">APIPARAMS</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid chart parameter: %s'</tt> <tt class="py-op">%</tt> <tt class="py-name">k</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name" targets="Class GChartWrapper.GChart'.Axes=GChartWrapper.GChart%27.Axes-class.html"><a title="GChartWrapper.GChart'.Axes" class="py-name" href="#" onclick="return doclink('link-28', 'Axes', 'link-28');">Axes</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">     </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="GChart.fromurl"></a><div id="GChart.fromurl-def"><a name="L200"></a><tt class="py-lineno">200</tt> <a class="py-toggle" href="#" id="GChart.fromurl-toggle" onclick="return toggle('GChart.fromurl');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#fromurl">fromurl</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">qs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.fromurl-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.fromurl-expanded"><a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line"><tt class="py-docstring">        Reverse a chart URL or dict into a GChart instance</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line"><tt class="py-docstring">        &gt;&gt;&gt; G = GChart.fromurl('http://chart.apis.google.com/chart?...')</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line"><tt class="py-docstring">        &gt;&gt;&gt; G</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line"><tt class="py-docstring">        &lt;GChartWrapper.GChart instance at...&gt;</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"><tt class="py-docstring">        &gt;&gt;&gt; G.image().save('chart.jpg','JPEG')</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">qs</tt><tt class="py-op">,</tt> <tt class="py-name">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-29" class="py-name" targets="Variable GChartWrapper.charts.templatetags.charts.FancyNode.cls=GChartWrapper.charts.templatetags.charts.FancyNode-class.html#cls"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-29', 'cls', 'link-29');">cls</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">qs</tt><tt class="py-op">)</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-30" class="py-name"><a title="GChartWrapper.charts.templatetags.charts.FancyNode.cls" class="py-name" href="#" onclick="return doclink('link-30', 'cls', 'link-29');">cls</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">dict</tt><tt class="py-op">(</tt><tt class="py-name">parse_qsl</tt><tt class="py-op">(</tt><tt class="py-name">qs</tt><tt class="py-op">[</tt><tt class="py-name">qs</tt><tt class="py-op">.</tt><tt class="py-name">index</tt><tt class="py-op">(</tt><tt class="py-string">'?'</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">         </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">    <tt class="py-comment">###################</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># Callables</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">###################</tt> </tt>
<a name="GChart.map"></a><div id="GChart.map-def"><a name="L216"></a><tt class="py-lineno">216</tt> <a class="py-toggle" href="#" id="GChart.map-toggle" onclick="return toggle('GChart.map');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#map">map</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">geo</tt><tt class="py-op">,</tt> <tt class="py-param">country_codes</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.map-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.map-expanded"><a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line"><tt class="py-docstring">        Creates a map of the defined geography with the given country/state codes</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line"><tt class="py-docstring">        Geography choices are africa, asia, europe, middle_east, south_america, and world</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line"><tt class="py-docstring">        ISO country codes can be found at http://code.google.com/apis/chart/isocodes.html</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line"><tt class="py-docstring">        US state codes can be found at http://code.google.com/apis/chart/statecodes.html</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAMS: chtm &amp; chld</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">geo</tt> <tt class="py-keyword">in</tt> <tt id="link-31" class="py-name" targets="Variable GChartWrapper.GChart'.GEO=GChartWrapper.GChart%27-module.html#GEO,Variable GChartWrapper.constants.GEO=GChartWrapper.constants-module.html#GEO"><a title="GChartWrapper.GChart'.GEO
GChartWrapper.constants.GEO" class="py-name" href="#" onclick="return doclink('link-31', 'GEO', 'link-31');">GEO</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Geograpic area %s not recognized'</tt><tt class="py-op">%</tt><tt class="py-name">geo</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_geo</tt> <tt class="py-op">=</tt> <tt class="py-name">geo</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ld</tt> <tt class="py-op">=</tt> <tt class="py-name">country_codes</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">         </tt>
<a name="GChart.level_data"></a><div id="GChart.level_data-def"><a name="L229"></a><tt class="py-lineno">229</tt> <a class="py-toggle" href="#" id="GChart.level_data-toggle" onclick="return toggle('GChart.level_data');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#level_data">level_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.level_data-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.level_data-expanded"><a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line"><tt class="py-docstring">        Just used in QRCode for the moment</tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line"><tt class="py-docstring">        args are error_correction,margin_size</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chld</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-string">'lmqh'</tt><tt class="py-op">,</tt> <tt class="py-string">'Unknown EC level %s'</tt><tt class="py-op">%</tt><tt class="py-name">level</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chld'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'%s|%s'</tt><tt class="py-op">%</tt><tt class="py-name">args</tt> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">         </tt>
<a name="GChart.bar"></a><div id="GChart.bar-def"><a name="L239"></a><tt class="py-lineno">239</tt> <a class="py-toggle" href="#" id="GChart.bar-toggle" onclick="return toggle('GChart.bar');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#bar">bar</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.bar-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.bar-expanded"><a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line"><tt class="py-docstring">        For bar charts, specify bar thickness and spacing with the args</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line"><tt class="py-docstring">        args are &lt;bar width&gt;,&lt;space between bars&gt;,&lt;space between groups&gt;</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line"><tt class="py-docstring">        bar width can be relative or absolute, see the official doc</tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chbh</tt> </tt>
<a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chbh'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-32" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-32', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">         </tt>
<a name="GChart.encoding"></a><div id="GChart.encoding-def"><a name="L249"></a><tt class="py-lineno">249</tt> <a class="py-toggle" href="#" id="GChart.encoding-toggle" onclick="return toggle('GChart.encoding');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#encoding">encoding</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">arg</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.encoding-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.encoding-expanded"><a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line"><tt class="py-docstring">        Specifies the encoding to be used for the Encoder</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line"><tt class="py-docstring">        Must be one of 'simple','text', or 'extended'</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_encoding</tt> <tt class="py-op">=</tt> <tt class="py-name">arg</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line">         </tt>
<a name="GChart.output_encoding"></a><div id="GChart.output_encoding-def"><a name="L257"></a><tt class="py-lineno">257</tt> <a class="py-toggle" href="#" id="GChart.output_encoding-toggle" onclick="return toggle('GChart.output_encoding');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#output_encoding">output_encoding</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">encoding</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.output_encoding-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.output_encoding-expanded"><a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line"><tt class="py-docstring">        Output encoding to use for QRCode encoding</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line"><tt class="py-docstring">        Must be one of 'Shift_JIS','UTF-8', or 'ISO-8859-1'</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: choe</tt> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt id="link-33" class="py-name"><a title="GChartWrapper.GChart.encoding
GChartWrapper.encoding" class="py-name" href="#" onclick="return doclink('link-33', 'encoding', 'link-3');">encoding</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-string">'Shift_JIS'</tt><tt class="py-op">,</tt><tt class="py-string">'UTF-8'</tt><tt class="py-op">,</tt><tt class="py-string">'ISO-8859-1'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>\ </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">            <tt class="py-string">'Unknown encoding %s'</tt><tt class="py-op">%</tt><tt id="link-34" class="py-name"><a title="GChartWrapper.GChart.encoding
GChartWrapper.encoding" class="py-name" href="#" onclick="return doclink('link-34', 'encoding', 'link-3');">encoding</a></tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'choe'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="GChartWrapper.GChart.encoding
GChartWrapper.encoding" class="py-name" href="#" onclick="return doclink('link-35', 'encoding', 'link-3');">encoding</a></tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">         </tt>
<a name="GChart.scale"></a><div id="GChart.scale-def"><a name="L268"></a><tt class="py-lineno">268</tt> <a class="py-toggle" href="#" id="GChart.scale-toggle" onclick="return toggle('GChart.scale');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#scale">scale</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.scale-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.scale-expanded"><a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line"><tt class="py-docstring">        Scales the data down to the given size</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line"><tt class="py-docstring">        args must be of the form::</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data set 1 minimum value&gt;,</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data set 1 maximum value&gt;,</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data set n minimum value&gt;,</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data set n maximum value&gt;</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line"><tt class="py-docstring">        will only work with text encoding!</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chds</tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_scale</tt> <tt class="py-op">=</tt>  <tt class="py-op">[</tt><tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-36" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-36', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt id="link-37" class="py-name"><a title="GChartWrapper.constants.smart_str" class="py-name" href="#" onclick="return doclink('link-37', 'smart_str', 'link-20');">smart_str</a></tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">         </tt>
<a name="GChart.dataset"></a><div id="GChart.dataset-def"><a name="L282"></a><tt class="py-lineno">282</tt> <a class="py-toggle" href="#" id="GChart.dataset-toggle" onclick="return toggle('GChart.dataset');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#dataset">dataset</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">,</tt> <tt class="py-param">series</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.dataset-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.dataset-expanded"><a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line"><tt class="py-docstring">        Update the chart's dataset, can be two dimensional or contain string data</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dataset</tt> <tt class="py-op">=</tt> <tt class="py-name">data</tt> </tt>
<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_series</tt> <tt class="py-op">=</tt> <tt class="py-name">series</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line">         </tt>
<a name="GChart.marker"></a><div id="GChart.marker-def"><a name="L290"></a><tt class="py-lineno">290</tt> <a class="py-toggle" href="#" id="GChart.marker-toggle" onclick="return toggle('GChart.marker');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#marker">marker</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.marker-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.marker-expanded"><a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line"><tt class="py-docstring">        Defines markers one at a time for your graph</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form::</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;marker type&gt;,</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;color&gt;,</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data set index&gt;,</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data point&gt;,</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;size&gt;,</tt> </tt>
<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;priority&gt;</tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line"><tt class="py-docstring">        see the official developers doc for the complete spec</tt> </tt>
<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chm</tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-38" class="py-name" targets="Variable GChartWrapper.GChart'.MARKERS=GChartWrapper.GChart%27-module.html#MARKERS,Variable GChartWrapper.constants.MARKERS=GChartWrapper.constants-module.html#MARKERS"><a title="GChartWrapper.GChart'.MARKERS
GChartWrapper.constants.MARKERS" class="py-name" href="#" onclick="return doclink('link-38', 'MARKERS', 'link-38');">MARKERS</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid marker type: %s'</tt><tt class="py-op">%</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> <tt class="py-op">&lt;=</tt> <tt class="py-number">6</tt><tt class="py-op">,</tt> <tt class="py-string">'Incorrect arguments %s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-39" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-39', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">markers</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-40" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-40', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L309"></a><tt class="py-lineno">309</tt>  <tt class="py-line">         </tt>
<a name="GChart.margin"></a><div id="GChart.margin-def"><a name="L310"></a><tt class="py-lineno">310</tt> <a class="py-toggle" href="#" id="GChart.margin-toggle" onclick="return toggle('GChart.margin');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#margin">margin</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">left</tt><tt class="py-op">,</tt> <tt class="py-param">right</tt><tt class="py-op">,</tt> <tt class="py-param">top</tt><tt class="py-op">,</tt> <tt class="py-param">bottom</tt><tt class="py-op">,</tt> <tt class="py-param">lwidth</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">lheight</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.margin-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.margin-expanded"><a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line"><tt class="py-docstring">        Set margins for chart area</tt> </tt>
<a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form::</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;left margin&gt;,</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;right margin&gt;,</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;top margin&gt;,</tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;bottom margin&gt;|</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;legend width&gt;,</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;legend height&gt;</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chma</tt> </tt>
<a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chma'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'%d,%d,%d,%d'</tt>  <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">left</tt><tt class="py-op">,</tt> <tt class="py-name">right</tt><tt class="py-op">,</tt> <tt class="py-name">top</tt><tt class="py-op">,</tt> <tt class="py-name">bottom</tt><tt class="py-op">)</tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">lwidth</tt> <tt class="py-keyword">or</tt> <tt class="py-name">lheight</tt><tt class="py-op">:</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chma'</tt><tt class="py-op">]</tt> <tt class="py-op">+=</tt> <tt class="py-string">'|%d,%d'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">lwidth</tt><tt class="py-op">,</tt> <tt class="py-name">lheight</tt><tt class="py-op">)</tt> </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line">     </tt>
<a name="GChart.line"></a><div id="GChart.line-def"><a name="L328"></a><tt class="py-lineno">328</tt> <a class="py-toggle" href="#" id="GChart.line-toggle" onclick="return toggle('GChart.line');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#line">line</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.line-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.line-expanded"><a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line"><tt class="py-docstring">        Called one at a time for each dataset</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form::</tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;data set n line thickness&gt;,</tt> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;length of line segment&gt;,</tt> </tt>
<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;length of blank segment&gt;</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chls</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lines</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-string">'%.1f'</tt><tt class="py-op">%</tt><tt class="py-name">x</tt> <tt class="py-keyword">for</tt> <tt class="py-name">x</tt> <tt class="py-keyword">in</tt> <tt id="link-41" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-41', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">float</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line">         </tt>
<a name="GChart.fill"></a><div id="GChart.fill-def"><a name="L340"></a><tt class="py-lineno">340</tt> <a class="py-toggle" href="#" id="GChart.fill-toggle" onclick="return toggle('GChart.fill');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#fill">fill</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.fill-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.fill-expanded"><a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line"><tt class="py-docstring">        Apply a solid fill to your chart</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form &lt;fill type&gt;,&lt;fill style&gt;,...</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line"><tt class="py-docstring">        fill type must be one of c,bg,a</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line"><tt class="py-docstring">        fill style must be one of s,lg,ls</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line"><tt class="py-docstring">        the rest of the args refer to the particular style</tt> </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chf</tt> </tt>
<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line">        <tt class="py-name">a</tt><tt class="py-op">,</tt><tt class="py-name">b</tt> <tt class="py-op">=</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">a</tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-string">'c'</tt><tt class="py-op">,</tt><tt class="py-string">'bg'</tt><tt class="py-op">,</tt><tt class="py-string">'a'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'Fill type must be bg/c/a not %s'</tt><tt class="py-op">%</tt><tt class="py-name">a</tt> </tt>
<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">b</tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-string">'s'</tt><tt class="py-op">,</tt><tt class="py-string">'lg'</tt><tt class="py-op">,</tt><tt class="py-string">'ls'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'Fill style must be s/lg/ls not %s'</tt><tt class="py-op">%</tt><tt class="py-name">b</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">3</tt><tt class="py-op">:</tt> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-42" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-42', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-43" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-43', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">5</tt><tt class="py-op">)</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fills</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-44" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-44', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line">         </tt>
<a name="GChart.grid"></a><div id="GChart.grid-def"><a name="L359"></a><tt class="py-lineno">359</tt> <a class="py-toggle" href="#" id="GChart.grid-toggle" onclick="return toggle('GChart.grid');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#grid">grid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.grid-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.grid-expanded"><a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L361"></a><tt class="py-lineno">361</tt>  <tt class="py-line"><tt class="py-docstring">        Apply a grid to your chart</tt> </tt>
<a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form::</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;x axis step size&gt;,</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;y axis step size&gt;,</tt> </tt>
<a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;length of line segment&gt;,</tt> </tt>
<a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;length of blank segment&gt;</tt> </tt>
<a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;x offset&gt;,</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line"><tt class="py-docstring">            &lt;y offset&gt;</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chg</tt> </tt>
<a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line">        <tt class="py-name">grids</tt> <tt class="py-op">=</tt>  <tt id="link-45" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-45', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt id="link-46" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-46', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">float</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chg'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">grids</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'None'</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
<a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">         </tt>
<a name="GChart.color"></a><div id="GChart.color-def"><a name="L375"></a><tt class="py-lineno">375</tt> <a class="py-toggle" href="#" id="GChart.color-toggle" onclick="return toggle('GChart.color');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#color">color</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.color-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.color-expanded"><a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line"><tt class="py-docstring">        Add a color for each dataset</tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line"><tt class="py-docstring">        args are of the form &lt;color 1&gt;,...&lt;color n&gt;</tt> </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chco</tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-47" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-47', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt id="link-48" class="py-name" targets="Method GChartWrapper.GChart'.Axes.range()=GChartWrapper.GChart%27.Axes-class.html#range"><a title="GChartWrapper.GChart'.Axes.range" class="py-name" href="#" onclick="return doclink('link-48', 'range', 'link-48');">range</a></tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chco'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line">         </tt>
<a name="GChart.type"></a><div id="GChart.type-def"><a name="L385"></a><tt class="py-lineno">385</tt> <a class="py-toggle" href="#" id="GChart.type-toggle" onclick="return toggle('GChart.type');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#type">type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.type-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.type-expanded"><a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line"><tt class="py-docstring">        Set the chart type, either Google API type or regular name</tt> </tt>
<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: cht</tt> </tt>
<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'cht'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="GChartWrapper.GChart.check_type" class="py-name" href="#" onclick="return doclink('link-49', 'check_type', 'link-25');">check_type</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-50" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-50', 'type', 'link-16');">type</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L392"></a><tt class="py-lineno">392</tt>  <tt class="py-line">         </tt>
<a name="GChart.label"></a><div id="GChart.label-def"><a name="L393"></a><tt class="py-lineno">393</tt> <a class="py-toggle" href="#" id="GChart.label-toggle" onclick="return toggle('GChart.label');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#label">label</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.label-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.label-expanded"><a name="L394"></a><tt class="py-lineno">394</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L395"></a><tt class="py-lineno">395</tt>  <tt class="py-line"><tt class="py-docstring">        Add a simple label to your chart</tt> </tt>
<a name="L396"></a><tt class="py-lineno">396</tt>  <tt class="py-line"><tt class="py-docstring">        call each time for each dataset</tt> </tt>
<a name="L397"></a><tt class="py-lineno">397</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chl</tt> </tt>
<a name="L398"></a><tt class="py-lineno">398</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L399"></a><tt class="py-lineno">399</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'cht'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'qr'</tt><tt class="py-op">:</tt> </tt>
<a name="L400"></a><tt class="py-lineno">400</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chl'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-51" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-51', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L401"></a><tt class="py-lineno">401</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L402"></a><tt class="py-lineno">402</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chl'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-52" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-52', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L403"></a><tt class="py-lineno">403</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L404"></a><tt class="py-lineno">404</tt>  <tt class="py-line">         </tt>
<a name="GChart.legend"></a><div id="GChart.legend-def"><a name="L405"></a><tt class="py-lineno">405</tt> <a class="py-toggle" href="#" id="GChart.legend-toggle" onclick="return toggle('GChart.legend');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#legend">legend</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.legend-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.legend-expanded"><a name="L406"></a><tt class="py-lineno">406</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L407"></a><tt class="py-lineno">407</tt>  <tt class="py-line"><tt class="py-docstring">        Add a legend to your chart</tt> </tt>
<a name="L408"></a><tt class="py-lineno">408</tt>  <tt class="py-line"><tt class="py-docstring">        call each time for each dataset</tt> </tt>
<a name="L409"></a><tt class="py-lineno">409</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chdl</tt> </tt>
<a name="L410"></a><tt class="py-lineno">410</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L411"></a><tt class="py-lineno">411</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chdl'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L412"></a><tt class="py-lineno">412</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L413"></a><tt class="py-lineno">413</tt>  <tt class="py-line">         </tt>
<a name="GChart.legend_pos"></a><div id="GChart.legend_pos-def"><a name="L414"></a><tt class="py-lineno">414</tt> <a class="py-toggle" href="#" id="GChart.legend_pos-toggle" onclick="return toggle('GChart.legend_pos');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#legend_pos">legend_pos</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">pos</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.legend_pos-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.legend_pos-expanded"><a name="L415"></a><tt class="py-lineno">415</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L416"></a><tt class="py-lineno">416</tt>  <tt class="py-line"><tt class="py-docstring">        Define a position for your legend to occupy</tt> </tt>
<a name="L417"></a><tt class="py-lineno">417</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chdlp</tt> </tt>
<a name="L418"></a><tt class="py-lineno">418</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L419"></a><tt class="py-lineno">419</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">pos</tt> <tt class="py-keyword">in</tt> <tt id="link-53" class="py-name" targets="Variable GChartWrapper.GChart'.LEGEND_POSITIONS=GChartWrapper.GChart%27-module.html#LEGEND_POSITIONS,Variable GChartWrapper.constants.LEGEND_POSITIONS=GChartWrapper.constants-module.html#LEGEND_POSITIONS"><a title="GChartWrapper.GChart'.LEGEND_POSITIONS
GChartWrapper.constants.LEGEND_POSITIONS" class="py-name" href="#" onclick="return doclink('link-53', 'LEGEND_POSITIONS', 'link-53');">LEGEND_POSITIONS</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Unknown legend position: %s'</tt><tt class="py-op">%</tt><tt class="py-name">pos</tt> </tt>
<a name="L420"></a><tt class="py-lineno">420</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chdlp'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">pos</tt><tt class="py-op">)</tt> </tt>
<a name="L421"></a><tt class="py-lineno">421</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L422"></a><tt class="py-lineno">422</tt>  <tt class="py-line">         </tt>
<a name="GChart.title"></a><div id="GChart.title-def"><a name="L423"></a><tt class="py-lineno">423</tt> <a class="py-toggle" href="#" id="GChart.title-toggle" onclick="return toggle('GChart.title');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#title">title</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">title</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.title-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.title-expanded"><a name="L424"></a><tt class="py-lineno">424</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L425"></a><tt class="py-lineno">425</tt>  <tt class="py-line"><tt class="py-docstring">        Add a title to your chart</tt> </tt>
<a name="L426"></a><tt class="py-lineno">426</tt>  <tt class="py-line"><tt class="py-docstring">        args are optional style params of the form &lt;color&gt;,&lt;font size&gt;</tt> </tt>
<a name="L427"></a><tt class="py-lineno">427</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAMS: chtt,chts</tt> </tt>
<a name="L428"></a><tt class="py-lineno">428</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L429"></a><tt class="py-lineno">429</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chtt'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-54" class="py-name" targets="Method GChartWrapper.GChart.title()=GChartWrapper.GChart-class.html#title"><a title="GChartWrapper.GChart.title" class="py-name" href="#" onclick="return doclink('link-54', 'title', 'link-54');">title</a></tt> </tt>
<a name="L430"></a><tt class="py-lineno">430</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">args</tt><tt class="py-op">:</tt> </tt>
<a name="L431"></a><tt class="py-lineno">431</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-55" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-55', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L432"></a><tt class="py-lineno">432</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chts'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-56" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-56', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L433"></a><tt class="py-lineno">433</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L434"></a><tt class="py-lineno">434</tt>  <tt class="py-line"> </tt>
<a name="GChart.size"></a><div id="GChart.size-def"><a name="L435"></a><tt class="py-lineno">435</tt> <a class="py-toggle" href="#" id="GChart.size-toggle" onclick="return toggle('GChart.size');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#size">size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.size-expanded"><a name="L436"></a><tt class="py-lineno">436</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L437"></a><tt class="py-lineno">437</tt>  <tt class="py-line"><tt class="py-docstring">        Set the size of the chart, args are width,height and can be tuple</tt> </tt>
<a name="L438"></a><tt class="py-lineno">438</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chs</tt> </tt>
<a name="L439"></a><tt class="py-lineno">439</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L440"></a><tt class="py-lineno">440</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L441"></a><tt class="py-lineno">441</tt>  <tt class="py-line">            <tt class="py-name">x</tt><tt class="py-op">,</tt><tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt id="link-57" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-57', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">int</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L442"></a><tt class="py-lineno">442</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L443"></a><tt class="py-lineno">443</tt>  <tt class="py-line">            <tt class="py-name">x</tt><tt class="py-op">,</tt><tt class="py-name">y</tt> <tt class="py-op">=</tt> <tt id="link-58" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-58', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">int</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L444"></a><tt class="py-lineno">444</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method GChartWrapper.GChart.check_size()=GChartWrapper.GChart-class.html#check_size"><a title="GChartWrapper.GChart.check_size" class="py-name" href="#" onclick="return doclink('link-59', 'check_size', 'link-59');">check_size</a></tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L445"></a><tt class="py-lineno">445</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chs'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'%dx%d'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">,</tt><tt class="py-name">y</tt><tt class="py-op">)</tt> </tt>
<a name="L446"></a><tt class="py-lineno">446</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L447"></a><tt class="py-lineno">447</tt>  <tt class="py-line">    </tt>
<a name="GChart.orientation"></a><div id="GChart.orientation-def"><a name="L448"></a><tt class="py-lineno">448</tt> <a class="py-toggle" href="#" id="GChart.orientation-toggle" onclick="return toggle('GChart.orientation');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#orientation">orientation</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">angle</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.orientation-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.orientation-expanded"><a name="L449"></a><tt class="py-lineno">449</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L450"></a><tt class="py-lineno">450</tt>  <tt class="py-line"><tt class="py-docstring">        Set the chart dataset orientation</tt> </tt>
<a name="L451"></a><tt class="py-lineno">451</tt>  <tt class="py-line"><tt class="py-docstring">        angle is &lt;angle in radians&gt;</tt> </tt>
<a name="L452"></a><tt class="py-lineno">452</tt>  <tt class="py-line"><tt class="py-docstring">        APIPARAM: chp</tt> </tt>
<a name="L453"></a><tt class="py-lineno">453</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L454"></a><tt class="py-lineno">454</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chp'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'%f'</tt><tt class="py-op">%</tt><tt class="py-name">angle</tt> </tt>
<a name="L455"></a><tt class="py-lineno">455</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L456"></a><tt class="py-lineno">456</tt>  <tt class="py-line">    <tt id="link-60" class="py-name" targets="Method GChartWrapper.GChart'.Axes.position()=GChartWrapper.GChart%27.Axes-class.html#position"><a title="GChartWrapper.GChart'.Axes.position" class="py-name" href="#" onclick="return doclink('link-60', 'position', 'link-60');">position</a></tt> <tt class="py-op">=</tt> <tt id="link-61" class="py-name" targets="Method GChartWrapper.GChart.orientation()=GChartWrapper.GChart-class.html#orientation"><a title="GChartWrapper.GChart.orientation" class="py-name" href="#" onclick="return doclink('link-61', 'orientation', 'link-61');">orientation</a></tt> </tt>
<a name="L457"></a><tt class="py-lineno">457</tt>  <tt class="py-line">     </tt>
<a name="GChart.render"></a><div id="GChart.render-def"><a name="L458"></a><tt class="py-lineno">458</tt> <a class="py-toggle" href="#" id="GChart.render-toggle" onclick="return toggle('GChart.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.render-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.render-expanded"><a name="L459"></a><tt class="py-lineno">459</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L460"></a><tt class="py-lineno">460</tt>  <tt class="py-line"><tt class="py-docstring">        Renders the chart context and axes into the dict data</tt> </tt>
<a name="L461"></a><tt class="py-lineno">461</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L462"></a><tt class="py-lineno">462</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">axes</tt><tt class="py-op">.</tt><tt id="link-62" class="py-name" targets="Method GChartWrapper.Bubble.render()=GChartWrapper.Bubble-class.html#render,Method GChartWrapper.GChart.render()=GChartWrapper.GChart-class.html#render,Method GChartWrapper.GChart'.Axes.render()=GChartWrapper.GChart%27.Axes-class.html#render,Method GChartWrapper.Note.render()=GChartWrapper.Note-class.html#render,Method GChartWrapper.Pin.render()=GChartWrapper.Pin-class.html#render,Method GChartWrapper.Text.render()=GChartWrapper.Text-class.html#render,Method GChartWrapper.charts.templatetags.charts.ChartNode.render()=GChartWrapper.charts.templatetags.charts.ChartNode-class.html#render,Method GChartWrapper.charts.templatetags.charts.GenericNode.render()=GChartWrapper.charts.templatetags.charts.GenericNode-class.html#render"><a title="GChartWrapper.Bubble.render
GChartWrapper.GChart.render
GChartWrapper.GChart'.Axes.render
GChartWrapper.Note.render
GChartWrapper.Pin.render
GChartWrapper.Text.render
GChartWrapper.charts.templatetags.charts.ChartNode.render
GChartWrapper.charts.templatetags.charts.GenericNode.render" class="py-name" href="#" onclick="return doclink('link-62', 'render', 'link-62');">render</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L463"></a><tt class="py-lineno">463</tt>  <tt class="py-line">        <tt class="py-name">encoder</tt> <tt class="py-op">=</tt> <tt id="link-63" class="py-name"><a title="GChartWrapper.encoding.Encoder" class="py-name" href="#" onclick="return doclink('link-63', 'Encoder', 'link-4');">Encoder</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_encoding</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_series</tt><tt class="py-op">)</tt> </tt>
<a name="L464"></a><tt class="py-lineno">464</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-string">'chs'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">:</tt> </tt>
<a name="L465"></a><tt class="py-lineno">465</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chs'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'300x150'</tt> </tt>
<a name="L466"></a><tt class="py-lineno">466</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L467"></a><tt class="py-lineno">467</tt>  <tt class="py-line">            <tt id="link-64" class="py-name" targets="Method GChartWrapper.GChart.size()=GChartWrapper.GChart-class.html#size"><a title="GChartWrapper.GChart.size" class="py-name" href="#" onclick="return doclink('link-64', 'size', 'link-64');">size</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chs'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'x'</tt><tt class="py-op">)</tt> </tt>
<a name="L468"></a><tt class="py-lineno">468</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-65" class="py-name"><a title="GChartWrapper.GChart.size" class="py-name" href="#" onclick="return doclink('link-65', 'size', 'link-64');">size</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">2</tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid size, must be in the format WxH'</tt> </tt>
<a name="L469"></a><tt class="py-lineno">469</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="GChartWrapper.GChart.check_size" class="py-name" href="#" onclick="return doclink('link-66', 'check_size', 'link-59');">check_size</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-67" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-67', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">int</tt><tt class="py-op">,</tt><tt id="link-68" class="py-name"><a title="GChartWrapper.GChart.size" class="py-name" href="#" onclick="return doclink('link-68', 'size', 'link-64');">size</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L470"></a><tt class="py-lineno">470</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-string">'cht'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'No chart type defined, use type method'</tt> </tt>
<a name="L471"></a><tt class="py-lineno">471</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'cht'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name"><a title="GChartWrapper.GChart.check_type" class="py-name" href="#" onclick="return doclink('link-69', 'check_type', 'link-25');">check_type</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'cht'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L472"></a><tt class="py-lineno">472</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-string">'any'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">dir</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dataset</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dataset</tt><tt class="py-op">.</tt><tt class="py-name">any</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dataset</tt><tt class="py-op">:</tt> </tt>
<a name="L473"></a><tt class="py-lineno">473</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chd'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">encoder</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name" targets="Method GChartWrapper.encoding.Encoder.encode()=GChartWrapper.encoding.Encoder-class.html#encode"><a title="GChartWrapper.encoding.Encoder.encode" class="py-name" href="#" onclick="return doclink('link-70', 'encode', 'link-70');">encode</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_dataset</tt><tt class="py-op">)</tt> </tt>
<a name="L474"></a><tt class="py-lineno">474</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-keyword">not</tt> <tt class="py-string">'choe'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">:</tt> </tt>
<a name="L475"></a><tt class="py-lineno">475</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-string">'chd'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'You must have a dataset, or use chd'</tt> </tt>
<a name="L476"></a><tt class="py-lineno">476</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_scale</tt><tt class="py-op">:</tt> </tt>
<a name="L477"></a><tt class="py-lineno">477</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chd'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">startswith</tt><tt class="py-op">(</tt><tt class="py-string">'t'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt>\ </tt>
<a name="L478"></a><tt class="py-lineno">478</tt>  <tt class="py-line">                <tt class="py-string">'You must use text encoding with chds'</tt> </tt>
<a name="L479"></a><tt class="py-lineno">479</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chds'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">','</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_scale</tt><tt class="py-op">)</tt> </tt>
<a name="L480"></a><tt class="py-lineno">480</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_geo</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ld</tt><tt class="py-op">:</tt> </tt>
<a name="L481"></a><tt class="py-lineno">481</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chtm'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_geo</tt> </tt>
<a name="L482"></a><tt class="py-lineno">482</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chld'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_ld</tt> </tt>
<a name="L483"></a><tt class="py-lineno">483</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lines</tt><tt class="py-op">:</tt> </tt>
<a name="L484"></a><tt class="py-lineno">484</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chls'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lines</tt><tt class="py-op">)</tt> </tt>
<a name="L485"></a><tt class="py-lineno">485</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">markers</tt><tt class="py-op">:</tt> </tt>
<a name="L486"></a><tt class="py-lineno">486</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chm'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">markers</tt><tt class="py-op">)</tt> </tt>
<a name="L487"></a><tt class="py-lineno">487</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fills</tt><tt class="py-op">:</tt> </tt>
<a name="L488"></a><tt class="py-lineno">488</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chf'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fills</tt><tt class="py-op">)</tt> </tt>
</div><a name="L489"></a><tt class="py-lineno">489</tt>  <tt class="py-line"> </tt>
<a name="L490"></a><tt class="py-lineno">490</tt>  <tt class="py-line">    <tt class="py-comment">###################</tt> </tt>
<a name="L491"></a><tt class="py-lineno">491</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># Checks</tt> </tt>
<a name="L492"></a><tt class="py-lineno">492</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">###################</tt> </tt>
<a name="GChart.check_size"></a><div id="GChart.check_size-def"><a name="L493"></a><tt class="py-lineno">493</tt> <a class="py-toggle" href="#" id="GChart.check_size-toggle" onclick="return toggle('GChart.check_size');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#check_size">check_size</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">x</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.check_size-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.check_size-expanded"><a name="L494"></a><tt class="py-lineno">494</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L495"></a><tt class="py-lineno">495</tt>  <tt class="py-line"><tt class="py-docstring">        Make sure the chart size fits the standards</tt> </tt>
<a name="L496"></a><tt class="py-lineno">496</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L497"></a><tt class="py-lineno">497</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">x</tt> <tt class="py-op">&lt;=</tt> <tt class="py-number">1000</tt><tt class="py-op">,</tt> <tt class="py-string">'Width larger than 1,000'</tt> </tt>
<a name="L498"></a><tt class="py-lineno">498</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">y</tt> <tt class="py-op">&lt;=</tt> <tt class="py-number">1000</tt><tt class="py-op">,</tt> <tt class="py-string">'Height larger than 1,000'</tt> </tt>
<a name="L499"></a><tt class="py-lineno">499</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">x</tt><tt class="py-op">*</tt><tt class="py-name">y</tt> <tt class="py-op">&lt;=</tt> <tt class="py-number">300000</tt><tt class="py-op">,</tt> <tt class="py-string">'Resolution larger than 300,000'</tt> </tt>
</div><a name="L500"></a><tt class="py-lineno">500</tt>  <tt class="py-line">         </tt>
<a name="GChart.check_type"></a><div id="GChart.check_type-def"><a name="L501"></a><tt class="py-lineno">501</tt> <a class="py-toggle" href="#" id="GChart.check_type-toggle" onclick="return toggle('GChart.check_type');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#check_type">check_type</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.check_type-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.check_type-expanded"><a name="L502"></a><tt class="py-lineno">502</tt>  <tt class="py-line">        <tt class="py-docstring">"""Check to see if the type is either in TYPES or fits type name</tt> </tt>
<a name="L503"></a><tt class="py-lineno">503</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L504"></a><tt class="py-lineno">504</tt>  <tt class="py-line"><tt class="py-docstring">        Returns proper type</tt> </tt>
<a name="L505"></a><tt class="py-lineno">505</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L506"></a><tt class="py-lineno">506</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-71" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-71', 'type', 'link-16');">type</a></tt> <tt class="py-keyword">in</tt> <tt id="link-72" class="py-name" targets="Variable GChartWrapper.GChart'.TYPES=GChartWrapper.GChart%27-module.html#TYPES,Variable GChartWrapper.constants.TYPES=GChartWrapper.constants-module.html#TYPES"><a title="GChartWrapper.GChart'.TYPES
GChartWrapper.constants.TYPES" class="py-name" href="#" onclick="return doclink('link-72', 'TYPES', 'link-72');">TYPES</a></tt><tt class="py-op">:</tt> </tt>
<a name="L507"></a><tt class="py-lineno">507</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-73" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-73', 'type', 'link-16');">type</a></tt> </tt>
<a name="L508"></a><tt class="py-lineno">508</tt>  <tt class="py-line">        <tt class="py-name">tdict</tt> <tt class="py-op">=</tt> <tt class="py-name">dict</tt><tt class="py-op">(</tt><tt class="py-name">zip</tt><tt class="py-op">(</tt><tt id="link-74" class="py-name"><a title="GChartWrapper.GChart'.TYPES
GChartWrapper.constants.TYPES" class="py-name" href="#" onclick="return doclink('link-74', 'TYPES', 'link-72');">TYPES</a></tt><tt class="py-op">,</tt><tt id="link-75" class="py-name"><a title="GChartWrapper.GChart'.TYPES
GChartWrapper.constants.TYPES" class="py-name" href="#" onclick="return doclink('link-75', 'TYPES', 'link-72');">TYPES</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L509"></a><tt class="py-lineno">509</tt>  <tt class="py-line">        <tt class="py-name">tdict</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-op">{</tt> </tt>
<a name="L510"></a><tt class="py-lineno">510</tt>  <tt class="py-line">            <tt class="py-string">'line'</tt><tt class="py-op">:</tt> <tt class="py-string">'lc'</tt><tt class="py-op">,</tt> </tt>
<a name="L511"></a><tt class="py-lineno">511</tt>  <tt class="py-line">            <tt class="py-string">'bar'</tt><tt class="py-op">:</tt> <tt class="py-string">'bvs'</tt><tt class="py-op">,</tt> </tt>
<a name="L512"></a><tt class="py-lineno">512</tt>  <tt class="py-line">            <tt class="py-string">'pie'</tt><tt class="py-op">:</tt> <tt class="py-string">'p'</tt><tt class="py-op">,</tt> </tt>
<a name="L513"></a><tt class="py-lineno">513</tt>  <tt class="py-line">            <tt class="py-string">'venn'</tt><tt class="py-op">:</tt> <tt class="py-string">'v'</tt><tt class="py-op">,</tt> </tt>
<a name="L514"></a><tt class="py-lineno">514</tt>  <tt class="py-line">            <tt class="py-string">'scater'</tt><tt class="py-op">:</tt> <tt class="py-string">'s'</tt><tt class="py-op">,</tt> </tt>
<a name="L515"></a><tt class="py-lineno">515</tt>  <tt class="py-line">            <tt class="py-string">'radar'</tt><tt class="py-op">:</tt> <tt class="py-string">'r'</tt><tt class="py-op">,</tt> </tt>
<a name="L516"></a><tt class="py-lineno">516</tt>  <tt class="py-line">            <tt class="py-string">'meter'</tt><tt class="py-op">:</tt> <tt class="py-string">'gom'</tt><tt class="py-op">,</tt> </tt>
<a name="L517"></a><tt class="py-lineno">517</tt>  <tt class="py-line">        <tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L518"></a><tt class="py-lineno">518</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt id="link-76" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-76', 'type', 'link-16');">type</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">tdict</tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid chart type: %s'</tt><tt class="py-op">%</tt><tt id="link-77" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-77', 'type', 'link-16');">type</a></tt> </tt>
<a name="L519"></a><tt class="py-lineno">519</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">tdict</tt><tt class="py-op">[</tt><tt id="link-78" class="py-name"><a title="GChartWrapper.GChart.type" class="py-name" href="#" onclick="return doclink('link-78', 'type', 'link-16');">type</a></tt><tt class="py-op">]</tt> </tt>
</div><a name="L520"></a><tt class="py-lineno">520</tt>  <tt class="py-line"> </tt>
<a name="L521"></a><tt class="py-lineno">521</tt>  <tt class="py-line">    <tt class="py-comment">#####################</tt> </tt>
<a name="L522"></a><tt class="py-lineno">522</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment"># Convience Functions</tt> </tt>
<a name="L523"></a><tt class="py-lineno">523</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-comment">#####################     </tt> </tt>
<a name="GChart.getname"></a><div id="GChart.getname-def"><a name="L524"></a><tt class="py-lineno">524</tt> <a class="py-toggle" href="#" id="GChart.getname-toggle" onclick="return toggle('GChart.getname');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#getname">getname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.getname-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.getname-expanded"><a name="L525"></a><tt class="py-lineno">525</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L526"></a><tt class="py-lineno">526</tt>  <tt class="py-line"><tt class="py-docstring">        Gets the name of the chart, if it exists</tt> </tt>
<a name="L527"></a><tt class="py-lineno">527</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L528"></a><tt class="py-lineno">528</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">'chtt'</tt><tt class="py-op">,</tt><tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
</div><a name="L529"></a><tt class="py-lineno">529</tt>  <tt class="py-line"> </tt>
<a name="GChart.getdata"></a><div id="GChart.getdata-def"><a name="L530"></a><tt class="py-lineno">530</tt> <a class="py-toggle" href="#" id="GChart.getdata-toggle" onclick="return toggle('GChart.getdata');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#getdata">getdata</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.getdata-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.getdata-expanded"><a name="L531"></a><tt class="py-lineno">531</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L532"></a><tt class="py-lineno">532</tt>  <tt class="py-line"><tt class="py-docstring">        Returns the decoded dataset from chd param</tt> </tt>
<a name="L533"></a><tt class="py-lineno">533</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L534"></a><tt class="py-lineno">534</tt>  <tt class="py-line">        <tt class="py-comment">#XXX: Why again? not even sure decode works well</tt> </tt>
<a name="L535"></a><tt class="py-lineno">535</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt class="py-keyword">return</tt> <tt id="link-79" class="py-name"><a title="GChartWrapper.encoding.Encoder" class="py-name" href="#" onclick="return doclink('link-79', 'Encoder', 'link-4');">Encoder</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_encoding</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Method GChartWrapper.encoding.Encoder.decode()=GChartWrapper.encoding.Encoder-class.html#decode"><a title="GChartWrapper.encoding.Encoder.decode" class="py-name" href="#" onclick="return doclink('link-80', 'decode', 'link-80');">decode</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chd'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L536"></a><tt class="py-lineno">536</tt>  <tt class="py-line"> </tt>
<a name="GChart._parts"></a><div id="GChart._parts-def"><a name="L537"></a><tt class="py-lineno">537</tt> <a class="py-toggle" href="#" id="GChart._parts-toggle" onclick="return toggle('GChart._parts');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#_parts">_parts</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart._parts-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart._parts-expanded"><a name="L538"></a><tt class="py-lineno">538</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-string">'%s=%s'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">k</tt><tt class="py-op">,</tt><tt id="link-81" class="py-name"><a title="GChartWrapper.constants.smart_str" class="py-name" href="#" onclick="return doclink('link-81', 'smart_str', 'link-20');">smart_str</a></tt><tt class="py-op">(</tt><tt class="py-name">v</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt><tt class="py-name">v</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">if</tt> <tt class="py-name">v</tt><tt class="py-op">)</tt> </tt>
</div><a name="L539"></a><tt class="py-lineno">539</tt>  <tt class="py-line"> </tt>
<a name="GChart.__str__"></a><div id="GChart.__str__-def"><a name="L540"></a><tt class="py-lineno">540</tt> <a class="py-toggle" href="#" id="GChart.__str__-toggle" onclick="return toggle('GChart.__str__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.__str__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.__str__-expanded"><a name="L541"></a><tt class="py-lineno">541</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-82" class="py-name" targets="Variable GChartWrapper.GChart.url=GChartWrapper.GChart-class.html#url"><a title="GChartWrapper.GChart.url" class="py-name" href="#" onclick="return doclink('link-82', 'url', 'link-82');">url</a></tt> </tt>
</div><a name="L542"></a><tt class="py-lineno">542</tt>  <tt class="py-line">     </tt>
<a name="GChart.__repr__"></a><div id="GChart.__repr__-def"><a name="L543"></a><tt class="py-lineno">543</tt> <a class="py-toggle" href="#" id="GChart.__repr__-toggle" onclick="return toggle('GChart.__repr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.__repr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.__repr__-expanded"><a name="L544"></a><tt class="py-lineno">544</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'&lt;GChartWrapper.%s %s&gt;'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L545"></a><tt class="py-lineno">545</tt>  <tt class="py-line">     </tt>
<a name="L546"></a><tt class="py-lineno">546</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="GChart.url"></a><div id="GChart.url-def"><a name="L547"></a><tt class="py-lineno">547</tt> <a class="py-toggle" href="#" id="GChart.url-toggle" onclick="return toggle('GChart.url');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#url">url</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.url-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.url-expanded"><a name="L548"></a><tt class="py-lineno">548</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L549"></a><tt class="py-lineno">549</tt>  <tt class="py-line"><tt class="py-docstring">        Returns the rendered URL of the chart</tt> </tt>
<a name="L550"></a><tt class="py-lineno">550</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L551"></a><tt class="py-lineno">551</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="GChartWrapper.Bubble.render
GChartWrapper.GChart.render
GChartWrapper.GChart'.Axes.render
GChartWrapper.Note.render
GChartWrapper.Pin.render
GChartWrapper.Text.render
GChartWrapper.charts.templatetags.charts.ChartNode.render
GChartWrapper.charts.templatetags.charts.GenericNode.render" class="py-name" href="#" onclick="return doclink('link-83', 'render', 'link-62');">render</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>         </tt>
<a name="L552"></a><tt class="py-lineno">552</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_apiurl</tt> <tt class="py-op">+</tt> <tt class="py-string">'&amp;'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name" targets="Method GChartWrapper.GChart._parts()=GChartWrapper.GChart-class.html#_parts"><a title="GChartWrapper.GChart._parts" class="py-name" href="#" onclick="return doclink('link-84', '_parts', 'link-84');">_parts</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">,</tt><tt class="py-string">'+'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L553"></a><tt class="py-lineno">553</tt>  <tt class="py-line"> </tt>
<a name="L554"></a><tt class="py-lineno">554</tt>  <tt class="py-line"> </tt>
<a name="GChart.show"></a><div id="GChart.show-def"><a name="L555"></a><tt class="py-lineno">555</tt> <a class="py-toggle" href="#" id="GChart.show-toggle" onclick="return toggle('GChart.show');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#show">show</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.show-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.show-expanded"><a name="L556"></a><tt class="py-lineno">556</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L557"></a><tt class="py-lineno">557</tt>  <tt class="py-line"><tt class="py-docstring">        Shows the chart URL in a webbrowser</tt> </tt>
<a name="L558"></a><tt class="py-lineno">558</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L559"></a><tt class="py-lineno">559</tt>  <tt class="py-line"><tt class="py-docstring">        Other arguments passed to webbrowser.open</tt> </tt>
<a name="L560"></a><tt class="py-lineno">560</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L561"></a><tt class="py-lineno">561</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-name">webbrowser</tt> <tt class="py-keyword">import</tt> <tt class="py-name">open</tt> <tt class="py-keyword">as</tt> <tt class="py-name">webopen</tt> </tt>
<a name="L562"></a><tt class="py-lineno">562</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">webopen</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
</div><a name="L563"></a><tt class="py-lineno">563</tt>  <tt class="py-line"> </tt>
<a name="GChart.save"></a><div id="GChart.save-def"><a name="L564"></a><tt class="py-lineno">564</tt> <a class="py-toggle" href="#" id="GChart.save-toggle" onclick="return toggle('GChart.save');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#save">save</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">fname</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.save-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.save-expanded"><a name="L565"></a><tt class="py-lineno">565</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L566"></a><tt class="py-lineno">566</tt>  <tt class="py-line"><tt class="py-docstring">        Download the chart from the URL into a filename as a PNG</tt> </tt>
<a name="L567"></a><tt class="py-lineno">567</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L568"></a><tt class="py-lineno">568</tt>  <tt class="py-line"><tt class="py-docstring">        The filename defaults to the chart title (chtt) if any</tt> </tt>
<a name="L569"></a><tt class="py-lineno">569</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L570"></a><tt class="py-lineno">570</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">fname</tt><tt class="py-op">:</tt> </tt>
<a name="L571"></a><tt class="py-lineno">571</tt>  <tt class="py-line">            <tt class="py-name">fname</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name" targets="Method GChartWrapper.GChart.getname()=GChartWrapper.GChart-class.html#getname"><a title="GChartWrapper.GChart.getname" class="py-name" href="#" onclick="return doclink('link-85', 'getname', 'link-85');">getname</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L572"></a><tt class="py-lineno">572</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">fname</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-string">'You must specify a filename to save to'</tt> </tt>
<a name="L573"></a><tt class="py-lineno">573</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">fname</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'.png'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L574"></a><tt class="py-lineno">574</tt>  <tt class="py-line">            <tt class="py-name">fname</tt> <tt class="py-op">+=</tt> <tt class="py-string">'.png'</tt> </tt>
<a name="L575"></a><tt class="py-lineno">575</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L576"></a><tt class="py-lineno">576</tt>  <tt class="py-line">            <tt class="py-name">urlretrieve</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name"><a title="GChartWrapper.GChart.url" class="py-name" href="#" onclick="return doclink('link-86', 'url', 'link-82');">url</a></tt><tt class="py-op">,</tt> <tt class="py-name">fname</tt><tt class="py-op">)</tt> </tt>
<a name="L577"></a><tt class="py-lineno">577</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">:</tt> </tt>
<a name="L578"></a><tt class="py-lineno">578</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">IOError</tt><tt class="py-op">(</tt><tt class="py-string">'Problem saving %s to file'</tt><tt class="py-op">%</tt><tt class="py-name">fname</tt><tt class="py-op">)</tt> </tt>
<a name="L579"></a><tt class="py-lineno">579</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">fname</tt> </tt>
</div><a name="L580"></a><tt class="py-lineno">580</tt>  <tt class="py-line"> </tt>
<a name="GChart.img"></a><div id="GChart.img-def"><a name="L581"></a><tt class="py-lineno">581</tt> <a class="py-toggle" href="#" id="GChart.img-toggle" onclick="return toggle('GChart.img');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#img">img</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.img-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.img-expanded"><a name="L582"></a><tt class="py-lineno">582</tt>  <tt class="py-line">        <tt class="py-docstring">""" </tt> </tt>
<a name="L583"></a><tt class="py-lineno">583</tt>  <tt class="py-line"><tt class="py-docstring">        Returns an XHTML &lt;img/&gt; tag of the chart</tt> </tt>
<a name="L584"></a><tt class="py-lineno">584</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L585"></a><tt class="py-lineno">585</tt>  <tt class="py-line"><tt class="py-docstring">        kwargs can be other img tag attributes, which are strictly enforced</tt> </tt>
<a name="L586"></a><tt class="py-lineno">586</tt>  <tt class="py-line"><tt class="py-docstring">        uses strict escaping on the url, necessary for proper XHTML</tt> </tt>
<a name="L587"></a><tt class="py-lineno">587</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt>        </tt>
<a name="L588"></a><tt class="py-lineno">588</tt>  <tt class="py-line">        <tt class="py-name">safe</tt> <tt class="py-op">=</tt> <tt class="py-string">'src="%s" '</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="GChartWrapper.GChart.url" class="py-name" href="#" onclick="return doclink('link-87', 'url', 'link-82');">url</a></tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'&amp;'</tt><tt class="py-op">,</tt><tt class="py-string">'&amp;amp;'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;'</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;lt;'</tt><tt class="py-op">)</tt>\ </tt>
<a name="L589"></a><tt class="py-lineno">589</tt>  <tt class="py-line">            <tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'&gt;'</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;gt;'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'"'</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;quot;'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt> <tt class="py-string">"'"</tt><tt class="py-op">,</tt> <tt class="py-string">'&amp;#39;'</tt><tt class="py-op">)</tt> </tt>
<a name="L590"></a><tt class="py-lineno">590</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">item</tt> <tt class="py-keyword">in</tt> <tt class="py-name">kwargs</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L591"></a><tt class="py-lineno">591</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">item</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-88" class="py-name" targets="Variable GChartWrapper.GChart'.IMGATTRS=GChartWrapper.GChart%27-module.html#IMGATTRS,Variable GChartWrapper.constants.IMGATTRS=GChartWrapper.constants-module.html#IMGATTRS"><a title="GChartWrapper.GChart'.IMGATTRS
GChartWrapper.constants.IMGATTRS" class="py-name" href="#" onclick="return doclink('link-88', 'IMGATTRS', 'link-88');">IMGATTRS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L592"></a><tt class="py-lineno">592</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">(</tt><tt class="py-string">'Invalid img tag attribute: %s'</tt><tt class="py-op">%</tt><tt class="py-name">item</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L593"></a><tt class="py-lineno">593</tt>  <tt class="py-line">            <tt class="py-name">safe</tt> <tt class="py-op">+=</tt> <tt class="py-string">'%s="%s" '</tt><tt class="py-op">%</tt><tt class="py-name">item</tt> </tt>
<a name="L594"></a><tt class="py-lineno">594</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">'&lt;img %s/&gt;'</tt><tt class="py-op">%</tt><tt class="py-name">safe</tt> </tt>
</div><a name="L595"></a><tt class="py-lineno">595</tt>  <tt class="py-line"> </tt>
<a name="GChart.urlopen"></a><div id="GChart.urlopen-def"><a name="L596"></a><tt class="py-lineno">596</tt> <a class="py-toggle" href="#" id="GChart.urlopen-toggle" onclick="return toggle('GChart.urlopen');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#urlopen">urlopen</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.urlopen-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.urlopen-expanded"><a name="L597"></a><tt class="py-lineno">597</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L598"></a><tt class="py-lineno">598</tt>  <tt class="py-line"><tt class="py-docstring">        Grabs readable PNG file pointer</tt> </tt>
<a name="L599"></a><tt class="py-lineno">599</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L600"></a><tt class="py-lineno">600</tt>  <tt class="py-line">        <tt class="py-name">req</tt> <tt class="py-op">=</tt> <tt class="py-name">Request</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L601"></a><tt class="py-lineno">601</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L602"></a><tt class="py-lineno">602</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-89" class="py-name" targets="Method GChartWrapper.GChart.urlopen()=GChartWrapper.GChart-class.html#urlopen"><a title="GChartWrapper.GChart.urlopen" class="py-name" href="#" onclick="return doclink('link-89', 'urlopen', 'link-89');">urlopen</a></tt><tt class="py-op">(</tt><tt class="py-name">req</tt><tt class="py-op">)</tt> </tt>
<a name="L603"></a><tt class="py-lineno">603</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">HTTPError</tt><tt class="py-op">:</tt> </tt>
<a name="L604"></a><tt class="py-lineno">604</tt>  <tt class="py-line">            <tt id="link-90" class="py-name" targets="Function GChartWrapper.constants._print()=GChartWrapper.constants-module.html#_print"><a title="GChartWrapper.constants._print" class="py-name" href="#" onclick="return doclink('link-90', '_print', 'link-90');">_print</a></tt><tt class="py-op">(</tt><tt class="py-string">'The server couldn\'t fulfill the request.'</tt><tt class="py-op">)</tt> </tt>
<a name="L605"></a><tt class="py-lineno">605</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">URLError</tt><tt class="py-op">:</tt> </tt>
<a name="L606"></a><tt class="py-lineno">606</tt>  <tt class="py-line">            <tt id="link-91" class="py-name"><a title="GChartWrapper.constants._print" class="py-name" href="#" onclick="return doclink('link-91', '_print', 'link-90');">_print</a></tt><tt class="py-op">(</tt><tt class="py-string">'We failed to reach a server.'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L607"></a><tt class="py-lineno">607</tt>  <tt class="py-line"> </tt>
<a name="GChart.image"></a><div id="GChart.image-def"><a name="L608"></a><tt class="py-lineno">608</tt> <a class="py-toggle" href="#" id="GChart.image-toggle" onclick="return toggle('GChart.image');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#image">image</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.image-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.image-expanded"><a name="L609"></a><tt class="py-lineno">609</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L610"></a><tt class="py-lineno">610</tt>  <tt class="py-line"><tt class="py-docstring">        Returns a PngImageFile instance of the chart</tt> </tt>
<a name="L611"></a><tt class="py-lineno">611</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L612"></a><tt class="py-lineno">612</tt>  <tt class="py-line"><tt class="py-docstring">        You must have PIL installed for this to work</tt> </tt>
<a name="L613"></a><tt class="py-lineno">613</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L614"></a><tt class="py-lineno">614</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L615"></a><tt class="py-lineno">615</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L616"></a><tt class="py-lineno">616</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt class="py-name">Image</tt> </tt>
<a name="L617"></a><tt class="py-lineno">617</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">ImportError</tt><tt class="py-op">:</tt> </tt>
<a name="L618"></a><tt class="py-lineno">618</tt>  <tt class="py-line">                <tt class="py-keyword">from</tt> <tt class="py-name">PIL</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Image</tt> </tt>
<a name="L619"></a><tt class="py-lineno">619</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">ImportError</tt><tt class="py-op">:</tt> </tt>
<a name="L620"></a><tt class="py-lineno">620</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">ImportError</tt><tt class="py-op">(</tt><tt class="py-string">'You must install PIL to fetch image objects'</tt><tt class="py-op">)</tt> </tt>
<a name="L621"></a><tt class="py-lineno">621</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L622"></a><tt class="py-lineno">622</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt class="py-name">cStringIO</tt> <tt class="py-keyword">import</tt> <tt class="py-name">StringIO</tt> </tt>
<a name="L623"></a><tt class="py-lineno">623</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">ImportError</tt><tt class="py-op">:</tt> </tt>
<a name="L624"></a><tt class="py-lineno">624</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt class="py-name">StringIO</tt> <tt class="py-keyword">import</tt> <tt class="py-name">StringIO</tt> </tt>
<a name="L625"></a><tt class="py-lineno">625</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">Image</tt><tt class="py-op">.</tt><tt class="py-name">open</tt><tt class="py-op">(</tt><tt class="py-name">StringIO</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="GChartWrapper.GChart.urlopen" class="py-name" href="#" onclick="return doclink('link-92', 'urlopen', 'link-89');">urlopen</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">read</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L626"></a><tt class="py-lineno">626</tt>  <tt class="py-line"> </tt>
<a name="GChart.write"></a><div id="GChart.write-def"><a name="L627"></a><tt class="py-lineno">627</tt> <a class="py-toggle" href="#" id="GChart.write-toggle" onclick="return toggle('GChart.write');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#write">write</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">fp</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.write-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.write-expanded"><a name="L628"></a><tt class="py-lineno">628</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L629"></a><tt class="py-lineno">629</tt>  <tt class="py-line"><tt class="py-docstring">        Writes out PNG image data in chunks to file pointer fp</tt> </tt>
<a name="L630"></a><tt class="py-lineno">630</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L631"></a><tt class="py-lineno">631</tt>  <tt class="py-line"><tt class="py-docstring">        fp must support w or wb</tt> </tt>
<a name="L632"></a><tt class="py-lineno">632</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L633"></a><tt class="py-lineno">633</tt>  <tt class="py-line">        <tt class="py-name">urlfp</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-93" class="py-name"><a title="GChartWrapper.GChart.urlopen" class="py-name" href="#" onclick="return doclink('link-93', 'urlopen', 'link-89');">urlopen</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">fp</tt> </tt>
<a name="L634"></a><tt class="py-lineno">634</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L635"></a><tt class="py-lineno">635</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L636"></a><tt class="py-lineno">636</tt>  <tt class="py-line">                <tt class="py-name">fp</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name" targets="Method GChartWrapper.GChart.write()=GChartWrapper.GChart-class.html#write"><a title="GChartWrapper.GChart.write" class="py-name" href="#" onclick="return doclink('link-94', 'write', 'link-94');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">urlfp</tt><tt class="py-op">.</tt><tt class="py-name">next</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L637"></a><tt class="py-lineno">637</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">StopIteration</tt><tt class="py-op">:</tt> </tt>
<a name="L638"></a><tt class="py-lineno">638</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> </tt>
</div><a name="L639"></a><tt class="py-lineno">639</tt>  <tt class="py-line"> </tt>
<a name="GChart.checksum"></a><div id="GChart.checksum-def"><a name="L640"></a><tt class="py-lineno">640</tt> <a class="py-toggle" href="#" id="GChart.checksum-toggle" onclick="return toggle('GChart.checksum');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.GChart-class.html#checksum">checksum</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="GChart.checksum-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GChart.checksum-expanded"><a name="L641"></a><tt class="py-lineno">641</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L642"></a><tt class="py-lineno">642</tt>  <tt class="py-line"><tt class="py-docstring">        Returns the unique SHA1 hexdigest of the chart URL param parts</tt> </tt>
<a name="L643"></a><tt class="py-lineno">643</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L644"></a><tt class="py-lineno">644</tt>  <tt class="py-line"><tt class="py-docstring">        good for unittesting...</tt> </tt>
<a name="L645"></a><tt class="py-lineno">645</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L646"></a><tt class="py-lineno">646</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="GChartWrapper.Bubble.render
GChartWrapper.GChart.render
GChartWrapper.GChart'.Axes.render
GChartWrapper.Note.render
GChartWrapper.Pin.render
GChartWrapper.Text.render
GChartWrapper.charts.templatetags.charts.ChartNode.render
GChartWrapper.charts.templatetags.charts.GenericNode.render" class="py-name" href="#" onclick="return doclink('link-95', 'render', 'link-62');">render</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L647"></a><tt class="py-lineno">647</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">new_sha</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">sorted</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="GChartWrapper.GChart._parts" class="py-name" href="#" onclick="return doclink('link-96', '_parts', 'link-84');">_parts</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">hexdigest</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L648"></a><tt class="py-lineno">648</tt>  <tt class="py-line"> </tt>
<a name="QRCode"></a><div id="QRCode-def"><a name="L649"></a><tt class="py-lineno">649</tt>  <tt class="py-line"><tt class="py-comment"># Now a whole mess of convenience classes</tt> </tt>
<a name="L650"></a><tt class="py-lineno">650</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># *for those of us who dont speak API*</tt> </tt>
<a name="L651"></a><tt class="py-lineno">651</tt> <a class="py-toggle" href="#" id="QRCode-toggle" onclick="return toggle('QRCode');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.QRCode-class.html">QRCode</a><tt class="py-op">(</tt><tt class="py-base-class">GChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="QRCode-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="QRCode-expanded"><a name="QRCode.__init__"></a><div id="QRCode.__init__-def"><a name="L652"></a><tt class="py-lineno">652</tt> <a class="py-toggle" href="#" id="QRCode.__init__-toggle" onclick="return toggle('QRCode.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.QRCode-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">content</tt><tt class="py-op">=</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="QRCode.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="QRCode.__init__-expanded"><a name="L653"></a><tt class="py-lineno">653</tt>  <tt class="py-line">        <tt class="py-name">kwargs</tt><tt class="py-op">[</tt><tt class="py-string">'choe'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'UTF-8'</tt> </tt>
<a name="L654"></a><tt class="py-lineno">654</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">content</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L655"></a><tt class="py-lineno">655</tt>  <tt class="py-line">            <tt class="py-name">kwargs</tt><tt class="py-op">[</tt><tt class="py-string">'chl'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-97" class="py-name" targets="Function GChartWrapper.constants.quote()=GChartWrapper.constants-module.html#quote"><a title="GChartWrapper.constants.quote" class="py-name" href="#" onclick="return doclink('link-97', 'quote', 'link-97');">quote</a></tt><tt class="py-op">(</tt><tt class="py-name">content</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'%0A'</tt><tt class="py-op">,</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L656"></a><tt class="py-lineno">656</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L657"></a><tt class="py-lineno">657</tt>  <tt class="py-line">            <tt class="py-name">kwargs</tt><tt class="py-op">[</tt><tt class="py-string">'chl'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-98" class="py-name"><a title="GChartWrapper.constants.quote" class="py-name" href="#" onclick="return doclink('link-98', 'quote', 'link-97');">quote</a></tt><tt class="py-op">(</tt><tt class="py-name">content</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'%0A'</tt><tt class="py-op">,</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt> </tt>
<a name="L658"></a><tt class="py-lineno">658</tt>  <tt class="py-line">        <tt id="link-99" class="py-name" targets="Class GChartWrapper.GChart=GChartWrapper.GChart-class.html"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-99', 'GChart', 'link-99');">GChart</a></tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-100', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'qr'</tt><tt class="py-op">,</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L659"></a><tt class="py-lineno">659</tt>  <tt class="py-line">         </tt>
<a name="_AbstractGChart"></a><div id="_AbstractGChart-def"><a name="L660"></a><tt class="py-lineno">660</tt> <a class="py-toggle" href="#" id="_AbstractGChart-toggle" onclick="return toggle('_AbstractGChart');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'._AbstractGChart-class.html">_AbstractGChart</a><tt class="py-op">(</tt><tt class="py-base-class">GChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_AbstractGChart-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_AbstractGChart-expanded"><a name="L661"></a><tt class="py-lineno">661</tt>  <tt class="py-line">    <tt id="link-101" class="py-name" targets="Variable GChartWrapper.GChart'._AbstractGChart.o=GChartWrapper.GChart%27._AbstractGChart-class.html#o,Variable GChartWrapper.Meter.o=GChartWrapper.Meter-class.html#o"><a title="GChartWrapper.GChart'._AbstractGChart.o
GChartWrapper.Meter.o" class="py-name" href="#" onclick="return doclink('link-101', 'o', 'link-101');">o</a></tt><tt class="py-op">,</tt><tt id="link-102" class="py-name" targets="Variable GChartWrapper.GChart'._AbstractGChart.t=GChartWrapper.GChart%27._AbstractGChart-class.html#t,Variable GChartWrapper.HorizontalBarGroup.t=GChartWrapper.HorizontalBarGroup-class.html#t,Variable GChartWrapper.HorizontalBarStack.t=GChartWrapper.HorizontalBarStack-class.html#t,Variable GChartWrapper.Line.t=GChartWrapper.Line-class.html#t,Variable GChartWrapper.LineXY.t=GChartWrapper.LineXY-class.html#t,Variable GChartWrapper.Map.t=GChartWrapper.Map-class.html#t,Variable GChartWrapper.Meter.t=GChartWrapper.Meter-class.html#t,Variable GChartWrapper.Pie.t=GChartWrapper.Pie-class.html#t,Variable GChartWrapper.Pie3D.t=GChartWrapper.Pie3D-class.html#t,Variable GChartWrapper.PieC.t=GChartWrapper.PieC-class.html#t,Variable GChartWrapper.Radar.t=GChartWrapper.Radar-class.html#t,Variable GChartWrapper.RadarSpline.t=GChartWrapper.RadarSpline-class.html#t,Variable GChartWrapper.Scatter.t=GChartWrapper.Scatter-class.html#t,Variable GChartWrapper.Sparkline.t=GChartWrapper.Sparkline-class.html#t,Variable GChartWrapper.Venn.t=GChartWrapper.Venn-class.html#t,Variable GChartWrapper.VerticalBarGroup.t=GChartWrapper.VerticalBarGroup-class.html#t,Variable GChartWrapper.VerticalBarStack.t=GChartWrapper.VerticalBarStack-class.html#t"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-102', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-name">None</tt> </tt>
<a name="_AbstractGChart.__init__"></a><div id="_AbstractGChart.__init__-def"><a name="L662"></a><tt class="py-lineno">662</tt> <a class="py-toggle" href="#" id="_AbstractGChart.__init__-toggle" onclick="return toggle('_AbstractGChart.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'._AbstractGChart-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">dataset</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_AbstractGChart.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_AbstractGChart.__init__-expanded"><a name="L663"></a><tt class="py-lineno">663</tt>  <tt class="py-line">        <tt class="py-name">kwargs</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.o
GChartWrapper.Meter.o" class="py-name" href="#" onclick="return doclink('link-103', 'o', 'link-101');">o</a></tt><tt class="py-op">)</tt> </tt>
<a name="L664"></a><tt class="py-lineno">664</tt>  <tt class="py-line">        <tt id="link-104" class="py-name"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-104', 'GChart', 'link-99');">GChart</a></tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-105', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-106', 't', 'link-102');">t</a></tt><tt class="py-op">,</tt> <tt id="link-107" class="py-name"><a title="GChartWrapper.GChart.dataset" class="py-name" href="#" onclick="return doclink('link-107', 'dataset', 'link-23');">dataset</a></tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L665"></a><tt class="py-lineno">665</tt>  <tt class="py-line"> </tt>
<a name="Meter"></a><div id="Meter-def"><a name="L666"></a><tt class="py-lineno">666</tt>  <tt class="py-line"> </tt>
<a name="L667"></a><tt class="py-lineno">667</tt> <a class="py-toggle" href="#" id="Meter-toggle" onclick="return toggle('Meter');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Meter-class.html">Meter</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>   <tt id="link-108" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.o
GChartWrapper.Meter.o" class="py-name" href="#" onclick="return doclink('link-108', 'o', 'link-101');">o</a></tt><tt class="py-op">,</tt><tt id="link-109" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-109', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'encoding'</tt><tt class="py-op">:</tt><tt class="py-string">'text'</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-string">'gom'</tt> </tt>
</div><a name="Line"></a><div id="Line-def"><a name="L668"></a><tt class="py-lineno">668</tt> <a class="py-toggle" href="#" id="Line-toggle" onclick="return toggle('Line');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Line-class.html">Line</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-110" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-110', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'lc'</tt>  </tt>
</div><a name="LineXY"></a><div id="LineXY-def"><a name="L669"></a><tt class="py-lineno">669</tt> <a class="py-toggle" href="#" id="LineXY-toggle" onclick="return toggle('LineXY');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.LineXY-class.html">LineXY</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-111" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-111', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'lxy'</tt>  </tt>
</div><a name="HorizontalBarStack"></a><div id="HorizontalBarStack-def"><a name="L670"></a><tt class="py-lineno">670</tt> <a class="py-toggle" href="#" id="HorizontalBarStack-toggle" onclick="return toggle('HorizontalBarStack');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.HorizontalBarStack-class.html">HorizontalBarStack</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-112" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-112', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'bhs'</tt>  </tt>
</div><a name="VerticalBarStack"></a><div id="VerticalBarStack-def"><a name="L671"></a><tt class="py-lineno">671</tt> <a class="py-toggle" href="#" id="VerticalBarStack-toggle" onclick="return toggle('VerticalBarStack');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.VerticalBarStack-class.html">VerticalBarStack</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-113" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-113', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'bvs'</tt>  </tt>
</div><a name="HorizontalBarGroup"></a><div id="HorizontalBarGroup-def"><a name="L672"></a><tt class="py-lineno">672</tt> <a class="py-toggle" href="#" id="HorizontalBarGroup-toggle" onclick="return toggle('HorizontalBarGroup');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.HorizontalBarGroup-class.html">HorizontalBarGroup</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-114" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-114', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'bhg'</tt>  </tt>
</div><a name="VerticalBarGroup"></a><div id="VerticalBarGroup-def"><a name="L673"></a><tt class="py-lineno">673</tt> <a class="py-toggle" href="#" id="VerticalBarGroup-toggle" onclick="return toggle('VerticalBarGroup');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.VerticalBarGroup-class.html">VerticalBarGroup</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-115" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-115', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'bvg'</tt>  </tt>
</div><a name="Pie"></a><div id="Pie-def"><a name="L674"></a><tt class="py-lineno">674</tt> <a class="py-toggle" href="#" id="Pie-toggle" onclick="return toggle('Pie');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Pie-class.html">Pie</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-116" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-116', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'p'</tt>  </tt>
</div><a name="Pie3D"></a><div id="Pie3D-def"><a name="L675"></a><tt class="py-lineno">675</tt> <a class="py-toggle" href="#" id="Pie3D-toggle" onclick="return toggle('Pie3D');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Pie3D-class.html">Pie3D</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-117" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-117', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'p3'</tt>  </tt>
</div><a name="Venn"></a><div id="Venn-def"><a name="L676"></a><tt class="py-lineno">676</tt> <a class="py-toggle" href="#" id="Venn-toggle" onclick="return toggle('Venn');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Venn-class.html">Venn</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-118" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-118', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'v'</tt>  </tt>
</div><a name="Scatter"></a><div id="Scatter-def"><a name="L677"></a><tt class="py-lineno">677</tt> <a class="py-toggle" href="#" id="Scatter-toggle" onclick="return toggle('Scatter');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Scatter-class.html">Scatter</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-119" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-119', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'s'</tt>  </tt>
</div><a name="Sparkline"></a><div id="Sparkline-def"><a name="L678"></a><tt class="py-lineno">678</tt> <a class="py-toggle" href="#" id="Sparkline-toggle" onclick="return toggle('Sparkline');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Sparkline-class.html">Sparkline</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-120" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-120', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'ls'</tt>  </tt>
</div><a name="Radar"></a><div id="Radar-def"><a name="L679"></a><tt class="py-lineno">679</tt> <a class="py-toggle" href="#" id="Radar-toggle" onclick="return toggle('Radar');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Radar-class.html">Radar</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-121" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-121', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'r'</tt>  </tt>
</div><a name="RadarSpline"></a><div id="RadarSpline-def"><a name="L680"></a><tt class="py-lineno">680</tt> <a class="py-toggle" href="#" id="RadarSpline-toggle" onclick="return toggle('RadarSpline');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.RadarSpline-class.html">RadarSpline</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-122" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-122', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'rs'</tt>  </tt>
</div><a name="Map"></a><div id="Map-def"><a name="L681"></a><tt class="py-lineno">681</tt> <a class="py-toggle" href="#" id="Map-toggle" onclick="return toggle('Map');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Map-class.html">Map</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-123" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-123', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'t'</tt>  </tt>
</div><a name="PieC"></a><div id="PieC-def"><a name="L682"></a><tt class="py-lineno">682</tt> <a class="py-toggle" href="#" id="PieC-toggle" onclick="return toggle('PieC');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.PieC-class.html">PieC</a><tt class="py-op">(</tt><tt class="py-base-class">_AbstractGChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     <tt id="link-124" class="py-name"><a title="GChartWrapper.GChart'._AbstractGChart.t
GChartWrapper.HorizontalBarGroup.t
GChartWrapper.HorizontalBarStack.t
GChartWrapper.Line.t
GChartWrapper.LineXY.t
GChartWrapper.Map.t
GChartWrapper.Meter.t
GChartWrapper.Pie.t
GChartWrapper.Pie3D.t
GChartWrapper.PieC.t
GChartWrapper.Radar.t
GChartWrapper.RadarSpline.t
GChartWrapper.Scatter.t
GChartWrapper.Sparkline.t
GChartWrapper.Venn.t
GChartWrapper.VerticalBarGroup.t
GChartWrapper.VerticalBarStack.t" class="py-name" href="#" onclick="return doclink('link-124', 't', 'link-102');">t</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'pc'</tt>  </tt>
</div><a name="L683"></a><tt class="py-lineno">683</tt>  <tt class="py-line"> </tt>
<a name="Text"></a><div id="Text-def"><a name="L684"></a><tt class="py-lineno">684</tt>  <tt class="py-line"><tt class="py-comment">########################################</tt> </tt>
<a name="L685"></a><tt class="py-lineno">685</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># Now for something completely different</tt> </tt>
<a name="L686"></a><tt class="py-lineno">686</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">########################################</tt> </tt>
<a name="L687"></a><tt class="py-lineno">687</tt> <a class="py-toggle" href="#" id="Text-toggle" onclick="return toggle('Text');">-</a><tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Text-class.html">Text</a><tt class="py-op">(</tt><tt class="py-base-class">GChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Text-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Text-expanded"><a name="Text.render"></a><div id="Text.render-def"><a name="L688"></a><tt class="py-lineno">688</tt> <a class="py-toggle" href="#" id="Text.render-toggle" onclick="return toggle('Text.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Text-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="Text.__init__"></a><div id="Text.__init__-def"><a name="L689"></a><tt class="py-lineno">689</tt> <a class="py-toggle" href="#" id="Text.__init__-toggle" onclick="return toggle('Text.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Text-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Text.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Text.__init__-expanded"><a name="L690"></a><tt class="py-lineno">690</tt>  <tt class="py-line">        <tt id="link-125" class="py-name"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-125', 'GChart', 'link-99');">GChart</a></tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-126', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L691"></a><tt class="py-lineno">691</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'d_text_outline'</tt> </tt>
<a name="L692"></a><tt class="py-lineno">692</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-127" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-127', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt> <tt id="link-128" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-128', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L693"></a><tt class="py-lineno">693</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt class="py-string">'lrh'</tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid text alignment'</tt> </tt>
<a name="L694"></a><tt class="py-lineno">694</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">4</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt class="py-string">'_b'</tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid font style'</tt> </tt>
<a name="L695"></a><tt class="py-lineno">695</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chld'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt>\ </tt>
<a name="L696"></a><tt class="py-lineno">696</tt>  <tt class="py-line">            <tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">,</tt><tt class="py-string">'+'</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L697"></a><tt class="py-lineno">697</tt>  <tt class="py-line"> </tt>
<a name="Pin"></a><div id="Pin-def"><a name="L698"></a><tt class="py-lineno">698</tt> <a class="py-toggle" href="#" id="Pin-toggle" onclick="return toggle('Pin');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Pin-class.html">Pin</a><tt class="py-op">(</tt><tt class="py-base-class">GChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Pin-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Pin-expanded"><a name="Pin.render"></a><div id="Pin.render-def"><a name="L699"></a><tt class="py-lineno">699</tt> <a class="py-toggle" href="#" id="Pin.render-toggle" onclick="return toggle('Pin.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Pin-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="Pin.__init__"></a><div id="Pin.__init__-def"><a name="L700"></a><tt class="py-lineno">700</tt> <a class="py-toggle" href="#" id="Pin.__init__-toggle" onclick="return toggle('Pin.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Pin-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ptype</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Pin.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Pin.__init__-expanded"><a name="L701"></a><tt class="py-lineno">701</tt>  <tt class="py-line">        <tt id="link-129" class="py-name"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-129', 'GChart', 'link-99');">GChart</a></tt><tt class="py-op">.</tt><tt id="link-130" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-130', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L702"></a><tt class="py-lineno">702</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">ptype</tt> <tt class="py-keyword">in</tt> <tt id="link-131" class="py-name" targets="Variable GChartWrapper.GChart'.PIN_TYPES=GChartWrapper.GChart%27-module.html#PIN_TYPES,Variable GChartWrapper.constants.PIN_TYPES=GChartWrapper.constants-module.html#PIN_TYPES"><a title="GChartWrapper.GChart'.PIN_TYPES
GChartWrapper.constants.PIN_TYPES" class="py-name" href="#" onclick="return doclink('link-131', 'PIN_TYPES', 'link-131');">PIN_TYPES</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid type'</tt> </tt>
<a name="L703"></a><tt class="py-lineno">703</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">ptype</tt> <tt class="py-op">==</tt> <tt class="py-string">"pin_letter"</tt><tt class="py-op">:</tt> </tt>
<a name="L704"></a><tt class="py-lineno">704</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-132" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-132', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L705"></a><tt class="py-lineno">705</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">ptype</tt> <tt class="py-op">==</tt> <tt class="py-string">'pin_icon'</tt><tt class="py-op">:</tt> </tt>
<a name="L706"></a><tt class="py-lineno">706</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-133" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-133', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L707"></a><tt class="py-lineno">707</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-134" class="py-name" targets="Variable GChartWrapper.GChart'.PIN_ICONS=GChartWrapper.GChart%27-module.html#PIN_ICONS,Variable GChartWrapper.constants.PIN_ICONS=GChartWrapper.constants-module.html#PIN_ICONS"><a title="GChartWrapper.GChart'.PIN_ICONS
GChartWrapper.constants.PIN_ICONS" class="py-name" href="#" onclick="return doclink('link-134', 'PIN_ICONS', 'link-134');">PIN_ICONS</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid icon name'</tt> </tt>
<a name="L708"></a><tt class="py-lineno">708</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">ptype</tt> <tt class="py-op">==</tt> <tt class="py-string">'xpin_letter'</tt><tt class="py-op">:</tt> </tt>
<a name="L709"></a><tt class="py-lineno">709</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-135" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-135', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L710"></a><tt class="py-lineno">710</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-136" class="py-name" targets="Variable GChartWrapper.GChart'.PIN_SHAPES=GChartWrapper.GChart%27-module.html#PIN_SHAPES,Variable GChartWrapper.constants.PIN_SHAPES=GChartWrapper.constants-module.html#PIN_SHAPES"><a title="GChartWrapper.GChart'.PIN_SHAPES
GChartWrapper.constants.PIN_SHAPES" class="py-name" href="#" onclick="return doclink('link-136', 'PIN_SHAPES', 'link-136');">PIN_SHAPES</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid pin shape'</tt> </tt>
<a name="L711"></a><tt class="py-lineno">711</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">startswith</tt><tt class="py-op">(</tt><tt class="py-string">'pin_'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L712"></a><tt class="py-lineno">712</tt>  <tt class="py-line">                <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'pin_%s'</tt><tt class="py-op">%</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt>  </tt>
<a name="L713"></a><tt class="py-lineno">713</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">ptype</tt> <tt class="py-op">==</tt> <tt class="py-string">'xpin_icon'</tt><tt class="py-op">:</tt> </tt>
<a name="L714"></a><tt class="py-lineno">714</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-137" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-137', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L715"></a><tt class="py-lineno">715</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-138" class="py-name"><a title="GChartWrapper.GChart'.PIN_SHAPES
GChartWrapper.constants.PIN_SHAPES" class="py-name" href="#" onclick="return doclink('link-138', 'PIN_SHAPES', 'link-136');">PIN_SHAPES</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid pin shape'</tt> </tt>
<a name="L716"></a><tt class="py-lineno">716</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">startswith</tt><tt class="py-op">(</tt><tt class="py-string">'pin_'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L717"></a><tt class="py-lineno">717</tt>  <tt class="py-line">                <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'pin_%s'</tt><tt class="py-op">%</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt>  </tt>
<a name="L718"></a><tt class="py-lineno">718</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-139" class="py-name"><a title="GChartWrapper.GChart'.PIN_ICONS
GChartWrapper.constants.PIN_ICONS" class="py-name" href="#" onclick="return doclink('link-139', 'PIN_ICONS', 'link-134');">PIN_ICONS</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid icon name'</tt> </tt>
<a name="L719"></a><tt class="py-lineno">719</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">ptype</tt> <tt class="py-op">==</tt> <tt class="py-string">'spin'</tt><tt class="py-op">:</tt> </tt>
<a name="L720"></a><tt class="py-lineno">720</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-140" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-140', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L721"></a><tt class="py-lineno">721</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'d_map_%s'</tt><tt class="py-op">%</tt><tt class="py-name">ptype</tt> </tt>
<a name="L722"></a><tt class="py-lineno">722</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chld'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-141" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-141', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt>\ </tt>
<a name="L723"></a><tt class="py-lineno">723</tt>  <tt class="py-line">            <tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">,</tt><tt class="py-string">'+'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Pin.shadow"></a><div id="Pin.shadow-def"><a name="L724"></a><tt class="py-lineno">724</tt> <a class="py-toggle" href="#" id="Pin.shadow-toggle" onclick="return toggle('Pin.shadow');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Pin-class.html#shadow">shadow</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Pin.shadow-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Pin.shadow-expanded"><a name="L725"></a><tt class="py-lineno">725</tt>  <tt class="py-line">        <tt id="link-142" class="py-name" targets="Method GChartWrapper.GChart.image()=GChartWrapper.GChart-class.html#image"><a title="GChartWrapper.GChart.image" class="py-name" href="#" onclick="return doclink('link-142', 'image', 'link-142');">image</a></tt> <tt class="py-op">=</tt> <tt class="py-name">copy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L726"></a><tt class="py-lineno">726</tt>  <tt class="py-line">        <tt class="py-name">chsts</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'_'</tt><tt class="py-op">)</tt> </tt>
<a name="L727"></a><tt class="py-lineno">727</tt>  <tt class="py-line">        <tt class="py-name">chsts</tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'shadow'</tt> </tt>
<a name="L728"></a><tt class="py-lineno">728</tt>  <tt class="py-line">        <tt id="link-143" class="py-name"><a title="GChartWrapper.GChart.image" class="py-name" href="#" onclick="return doclink('link-143', 'image', 'link-142');">image</a></tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'_'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">chsts</tt><tt class="py-op">)</tt> </tt>
<a name="L729"></a><tt class="py-lineno">729</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-144" class="py-name"><a title="GChartWrapper.GChart.image" class="py-name" href="#" onclick="return doclink('link-144', 'image', 'link-142');">image</a></tt> </tt>
</div></div><a name="L730"></a><tt class="py-lineno">730</tt>  <tt class="py-line"> </tt>
<a name="Note"></a><div id="Note-def"><a name="L731"></a><tt class="py-lineno">731</tt> <a class="py-toggle" href="#" id="Note-toggle" onclick="return toggle('Note');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Note-class.html">Note</a><tt class="py-op">(</tt><tt class="py-base-class">GChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Note-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Note-expanded"><a name="Note.render"></a><div id="Note.render-def"><a name="L732"></a><tt class="py-lineno">732</tt> <a class="py-toggle" href="#" id="Note.render-toggle" onclick="return toggle('Note.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Note-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="Note.__init__"></a><div id="Note.__init__-def"><a name="L733"></a><tt class="py-lineno">733</tt> <a class="py-toggle" href="#" id="Note.__init__-toggle" onclick="return toggle('Note.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Note-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Note.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Note.__init__-expanded"><a name="L734"></a><tt class="py-lineno">734</tt>  <tt class="py-line">        <tt id="link-145" class="py-name"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-145', 'GChart', 'link-99');">GChart</a></tt><tt class="py-op">.</tt><tt id="link-146" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-146', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L735"></a><tt class="py-lineno">735</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-147" class="py-name" targets="Variable GChartWrapper.GChart'.NOTE_TYPES=GChartWrapper.GChart%27-module.html#NOTE_TYPES,Variable GChartWrapper.constants.NOTE_TYPES=GChartWrapper.constants-module.html#NOTE_TYPES"><a title="GChartWrapper.GChart'.NOTE_TYPES
GChartWrapper.constants.NOTE_TYPES" class="py-name" href="#" onclick="return doclink('link-147', 'NOTE_TYPES', 'link-147');">NOTE_TYPES</a></tt><tt class="py-op">,</tt><tt class="py-string">'Invalid note type'</tt> </tt>
<a name="L736"></a><tt class="py-lineno">736</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-148" class="py-name" targets="Variable GChartWrapper.GChart'.NOTE_IMAGES=GChartWrapper.GChart%27-module.html#NOTE_IMAGES,Variable GChartWrapper.constants.NOTE_IMAGES=GChartWrapper.constants-module.html#NOTE_IMAGES"><a title="GChartWrapper.GChart'.NOTE_IMAGES
GChartWrapper.constants.NOTE_IMAGES" class="py-name" href="#" onclick="return doclink('link-148', 'NOTE_IMAGES', 'link-148');">NOTE_IMAGES</a></tt><tt class="py-op">,</tt><tt class="py-string">'Invalid note image'</tt> </tt>
<a name="L737"></a><tt class="py-lineno">737</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'note'</tt><tt class="py-op">)</tt><tt class="py-op">&gt;</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L738"></a><tt class="py-lineno">738</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt>  <tt class="py-string">'d_f%s'</tt><tt class="py-op">%</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L739"></a><tt class="py-lineno">739</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-149" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-149', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L740"></a><tt class="py-lineno">740</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L741"></a><tt class="py-lineno">741</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'d_%s'</tt><tt class="py-op">%</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L742"></a><tt class="py-lineno">742</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-150" class="py-name" targets="Variable GChartWrapper.GChart'.NOTE_WEATHERS=GChartWrapper.GChart%27-module.html#NOTE_WEATHERS,Variable GChartWrapper.constants.NOTE_WEATHERS=GChartWrapper.constants-module.html#NOTE_WEATHERS"><a title="GChartWrapper.GChart'.NOTE_WEATHERS
GChartWrapper.constants.NOTE_WEATHERS" class="py-name" href="#" onclick="return doclink('link-150', 'NOTE_WEATHERS', 'link-150');">NOTE_WEATHERS</a></tt><tt class="py-op">,</tt><tt class="py-string">'Invalid weather'</tt> </tt>
<a name="L743"></a><tt class="py-lineno">743</tt>  <tt class="py-line">        <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L744"></a><tt class="py-lineno">744</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chld'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-151" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-151', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt>\ </tt>
<a name="L745"></a><tt class="py-lineno">745</tt>  <tt class="py-line">            <tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">,</tt><tt class="py-string">'+'</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L746"></a><tt class="py-lineno">746</tt>  <tt class="py-line"> </tt>
<a name="Bubble"></a><div id="Bubble-def"><a name="L747"></a><tt class="py-lineno">747</tt> <a class="py-toggle" href="#" id="Bubble-toggle" onclick="return toggle('Bubble');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Bubble-class.html">Bubble</a><tt class="py-op">(</tt><tt class="py-base-class">GChart</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Bubble-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Bubble-expanded"><a name="Bubble.render"></a><div id="Bubble.render-def"><a name="L748"></a><tt class="py-lineno">748</tt> <a class="py-toggle" href="#" id="Bubble.render-toggle" onclick="return toggle('Bubble.render');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Bubble-class.html#render">render</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="Bubble.__init__"></a><div id="Bubble.__init__-def"><a name="L749"></a><tt class="py-lineno">749</tt> <a class="py-toggle" href="#" id="Bubble.__init__-toggle" onclick="return toggle('Bubble.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Bubble-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">btype</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Bubble.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Bubble.__init__-expanded"><a name="L750"></a><tt class="py-lineno">750</tt>  <tt class="py-line">        <tt id="link-152" class="py-name"><a title="GChartWrapper.GChart" class="py-name" href="#" onclick="return doclink('link-152', 'GChart', 'link-99');">GChart</a></tt><tt class="py-op">.</tt><tt id="link-153" class="py-name"><a title="GChartWrapper.Bubble.__init__
GChartWrapper.GChart.__init__
GChartWrapper.GChart'.Axes.__init__
GChartWrapper.GChart'._AbstractGChart.__init__
GChartWrapper.Note.__init__
GChartWrapper.Pin.__init__
GChartWrapper.QRCode.__init__
GChartWrapper.Text.__init__
GChartWrapper.charts.templatetags.charts.ChartNode.__init__
GChartWrapper.charts.templatetags.charts.GenericNode.__init__
GChartWrapper.encoding.Encoder.__init__
GChartWrapper.tests.TestChartTypes.__init__" class="py-name" href="#" onclick="return doclink('link-153', '__init__', 'link-14');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L751"></a><tt class="py-lineno">751</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">btype</tt> <tt class="py-keyword">in</tt> <tt id="link-154" class="py-name" targets="Variable GChartWrapper.GChart'.BUBBLE_TYPES=GChartWrapper.GChart%27-module.html#BUBBLE_TYPES,Variable GChartWrapper.constants.BUBBLE_TYPES=GChartWrapper.constants-module.html#BUBBLE_TYPES"><a title="GChartWrapper.GChart'.BUBBLE_TYPES
GChartWrapper.constants.BUBBLE_TYPES" class="py-name" href="#" onclick="return doclink('link-154', 'BUBBLE_TYPES', 'link-154');">BUBBLE_TYPES</a></tt><tt class="py-op">,</tt> <tt class="py-string">'Invalid type'</tt> </tt>
<a name="L752"></a><tt class="py-lineno">752</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">btype</tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-string">'icon_text_small'</tt><tt class="py-op">,</tt><tt class="py-string">'icon_text_big'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L753"></a><tt class="py-lineno">753</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-155" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-155', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L754"></a><tt class="py-lineno">754</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-156" class="py-name" targets="Variable GChartWrapper.GChart'.BUBBLE_SICONS=GChartWrapper.GChart%27-module.html#BUBBLE_SICONS,Variable GChartWrapper.constants.BUBBLE_SICONS=GChartWrapper.constants-module.html#BUBBLE_SICONS"><a title="GChartWrapper.GChart'.BUBBLE_SICONS
GChartWrapper.constants.BUBBLE_SICONS" class="py-name" href="#" onclick="return doclink('link-156', 'BUBBLE_SICONS', 'link-156');">BUBBLE_SICONS</a></tt><tt class="py-op">,</tt><tt class="py-string">'Invalid icon type'</tt> </tt>
<a name="L755"></a><tt class="py-lineno">755</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">btype</tt> <tt class="py-op">==</tt> <tt class="py-string">'icon_texts_big'</tt><tt class="py-op">:</tt> </tt>
<a name="L756"></a><tt class="py-lineno">756</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt id="link-157" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-157', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L757"></a><tt class="py-lineno">757</tt>  <tt class="py-line">            <tt class="py-keyword">assert</tt> <tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt id="link-158" class="py-name" targets="Variable GChartWrapper.GChart'.BUBBLE_LICONS=GChartWrapper.GChart%27-module.html#BUBBLE_LICONS,Variable GChartWrapper.constants.BUBBLE_LICONS=GChartWrapper.constants-module.html#BUBBLE_LICONS"><a title="GChartWrapper.GChart'.BUBBLE_LICONS
GChartWrapper.constants.BUBBLE_LICONS" class="py-name" href="#" onclick="return doclink('link-158', 'BUBBLE_LICONS', 'link-158');">BUBBLE_LICONS</a></tt><tt class="py-op">,</tt><tt class="py-string">'Invalid icon type'</tt> </tt>
<a name="L758"></a><tt class="py-lineno">758</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">btype</tt> <tt class="py-op">==</tt> <tt class="py-string">'texts_big'</tt><tt class="py-op">:</tt> </tt>
<a name="L759"></a><tt class="py-lineno">759</tt>  <tt class="py-line">            <tt class="py-name">args</tt> <tt class="py-op">=</tt> <tt id="link-159" class="py-name"><a title="GChartWrapper.GChart'.color_args" class="py-name" href="#" onclick="return doclink('link-159', 'color_args', 'link-21');">color_args</a></tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L760"></a><tt class="py-lineno">760</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'d_bubble_%s'</tt><tt class="py-op">%</tt><tt class="py-name">btype</tt> </tt>
<a name="L761"></a><tt class="py-lineno">761</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chld'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-160" class="py-name"><a title="GChartWrapper.GChart.map" class="py-name" href="#" onclick="return doclink('link-160', 'map', 'link-17');">map</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">,</tt> <tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt>\ </tt>
<a name="L762"></a><tt class="py-lineno">762</tt>  <tt class="py-line">            <tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\r'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">,</tt><tt class="py-string">'|'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">,</tt><tt class="py-string">'+'</tt><tt class="py-op">)</tt> </tt>
</div><a name="Bubble.shadow"></a><div id="Bubble.shadow-def"><a name="L763"></a><tt class="py-lineno">763</tt> <a class="py-toggle" href="#" id="Bubble.shadow-toggle" onclick="return toggle('Bubble.shadow');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="GChartWrapper.GChart'.Bubble-class.html#shadow">shadow</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Bubble.shadow-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Bubble.shadow-expanded"><a name="L764"></a><tt class="py-lineno">764</tt>  <tt class="py-line">        <tt id="link-161" class="py-name"><a title="GChartWrapper.GChart.image" class="py-name" href="#" onclick="return doclink('link-161', 'image', 'link-142');">image</a></tt> <tt class="py-op">=</tt> <tt class="py-name">copy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L765"></a><tt class="py-lineno">765</tt>  <tt class="py-line">        <tt id="link-162" class="py-name"><a title="GChartWrapper.GChart.image" class="py-name" href="#" onclick="return doclink('link-162', 'image', 'link-142');">image</a></tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'%s_shadow'</tt><tt class="py-op">%</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-string">'chst'</tt><tt class="py-op">]</tt> </tt>
<a name="L766"></a><tt class="py-lineno">766</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-163" class="py-name"><a title="GChartWrapper.GChart.image" class="py-name" href="#" onclick="return doclink('link-163', 'image', 'link-142');">image</a></tt> </tt>
</div></div><a name="L767"></a><tt class="py-lineno">767</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="GChartWrapper-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1
    on Wed Sep 30 14:59:38 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
